I
ilovezlaner
Unregistered / Unconfirmed
GUEST, unregistred user!
unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, frxClass;type TForm1 = class(TForm) fr1: TfrxReport
Button1: TButton
procedure Button1Click(Sender: TObject)
private { Private declarations } public { Public declarations } end;var Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);begin fr1.LoadFromFile('hg.fr3')
TfrxMemoView(fR1.FindObject('memo1')).memo.text:='合同编号:1111'
fr1.ShowReport
end;程序运行时,要报错:project project1.exe raised exception class EAccessViolation with message"Access violation at address 005255E1 in module project1.exe,Read of address 000001FC.".process stopped. Use Step or Run to continue.但是如果去掉 fr1.LoadFromFile('hg.fr3');后就不会报错了,但是我不可能不调用赛请高手指教
Button1: TButton
procedure Button1Click(Sender: TObject)
private { Private declarations } public { Public declarations } end;var Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);begin fr1.LoadFromFile('hg.fr3')
TfrxMemoView(fR1.FindObject('memo1')).memo.text:='合同编号:1111'
fr1.ShowReport
end;程序运行时,要报错:project project1.exe raised exception class EAccessViolation with message"Access violation at address 005255E1 in module project1.exe,Read of address 000001FC.".process stopped. Use Step or Run to continue.但是如果去掉 fr1.LoadFromFile('hg.fr3');后就不会报错了,但是我不可能不调用赛请高手指教