unit1.pas

来自「航空人身保险信息管理系统使用SQL和DELHPI开发」· PAS 代码 · 共 48 行

PAS
48
字号
// FastReport 2.4 demo
//
// This example demonstrates how to use TfrPrintTable component

unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  StdCtrls, FR_PTabl, DB, DBTables, ExtCtrls, FR_Desgn;

type
  TForm1 = class(TForm)
    Table1: TTable;
    Button1: TButton;
    frDesigner1: TfrDesigner;
    frPrintTable1: TfrPrintTable;
    procedure Button1Click(Sender: TObject);
    procedure frPrintTable1PrintColumn(ColumnNo: Integer;
      var Width: Integer);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.DFM}

procedure TForm1.Button1Click(Sender: TObject);
begin
  frPrintTable1.ShowReport;
end;

procedure TForm1.frPrintTable1PrintColumn(ColumnNo: Integer;
  var Width: Integer);
begin
  if ColumnNo = 3 then
    Width := 70;
end;

end.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?