⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 unit1.pas

📁 FastReport2.5报表控件!具有很大的灵活空间。可以作为一个设计平台。
💻 PAS
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -