求FAST REPORT使用自定义函数库的例子(100)

  • 主题发起人 主题发起人 skit
  • 开始时间 开始时间
S

skit

Unregistered / Unconfirmed
GUEST, unregistred user!
求FAST REPORT 2.47 使用自定义函数库的例子,请发到 skit@163.com,谢谢~~
 
unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, FR_Class;type TForm1 = class(TForm) frReport1: TfrReport;
procedure frReport1UserFunction(const Name: string;
p1, p2, p3: Variant;
var Val: Variant);
procedure FormCreate(Sender: TObject);
private { Private declarations } public { Public declarations } end;
var Form1: TForm1;implementation{$R *.dfm}procedure TForm1.frReport1UserFunction(const Name: string;
p1, p2, p3: Variant;
var Val: Variant);var s: string;
begin
if SameText(Name, 'getv') then
begin
s := 'p1=' + IntToStr(frParser.Calc(p1));
s := s + ' ;p2=' + IntToStr(frParser.Calc(p2));
Val := s;
exit;
end;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
frReport1.ShowReport;
end;
end.
/////[getV(LINE#,PAGE#)]
 
后退
顶部