You've already forked lazarus-ccr
44 lines
604 B
ObjectPascal
44 lines
604 B
ObjectPascal
![]() |
unit Unit1;
|
||
|
|
||
|
{$mode objfpc}{$H+}
|
||
|
|
||
|
interface
|
||
|
|
||
|
uses
|
||
|
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, Grids, ExtCtrls,
|
||
|
StdCtrls, GridPrn, GridPrnPreviewDlg;
|
||
|
|
||
|
type
|
||
|
|
||
|
{ TForm1 }
|
||
|
|
||
|
TForm1 = class(TForm)
|
||
|
Button1: TButton;
|
||
|
GridPrinter1: TGridPrinter;
|
||
|
GridPrintPreviewDialog1: TGridPrintPreviewDialog;
|
||
|
Panel1: TPanel;
|
||
|
StringGrid1: TStringGrid;
|
||
|
procedure Button1Click(Sender: TObject);
|
||
|
private
|
||
|
|
||
|
public
|
||
|
|
||
|
end;
|
||
|
|
||
|
var
|
||
|
Form1: TForm1;
|
||
|
|
||
|
implementation
|
||
|
|
||
|
{$R *.lfm}
|
||
|
|
||
|
{ TForm1 }
|
||
|
|
||
|
procedure TForm1.Button1Click(Sender: TObject);
|
||
|
begin
|
||
|
GridPrintPreviewDialog1.Execute;
|
||
|
end;
|
||
|
|
||
|
end.
|
||
|
|