写了个activeform(名成为:testX),还有一个普通的QuickReport(名称为:QRForm1),
在testX上有一个按钮,click事件为:
procedure TtestX.button1Click(Sender: TObject);
begin
QRForm1 := TQRForm1.create(self);
QRForm1.print;
end;执行时报错:
Access Violation at address 08014C8B in module 'szfa.ocx'. Read of address 00000054.我这样新开一个form没问题,但是报表旧报错.
在testX上有一个按钮,click事件为:
procedure TtestX.button1Click(Sender: TObject);
begin
QRForm1 := TQRForm1.create(self);
QRForm1.print;
end;执行时报错:
Access Violation at address 08014C8B in module 'szfa.ocx'. Read of address 00000054.我这样新开一个form没问题,但是报表旧报错.
用qrform1。print就好了
query没有找到表什么的,都有可能
from?.quickreprot?.print;