A
apple_dang
Unregistered / Unconfirmed
GUEST, unregistred user!
我用的delphi6.0,用quickreport做的报表,是一个独立的窗体:bq
一开始‘bq’在‘project options’下的‘Auto_create forms’里,编译运行后,预览正常,但是退出调用它的窗体,重新进入再预览时,只有表格没有数据。
后来把‘bq’放到‘Available forms’里,在预览按钮里写上:
Try
Application.CreateForm(tbq,bq);
bq.Preview;
Except
ShowMessage('System Error.');
end;
只能预览一次,第二次会提示‘a component named bq already exists ’
实在想不出来是怎么回事,大家帮帮忙吧!
一开始‘bq’在‘project options’下的‘Auto_create forms’里,编译运行后,预览正常,但是退出调用它的窗体,重新进入再预览时,只有表格没有数据。
后来把‘bq’放到‘Available forms’里,在预览按钮里写上:
Try
Application.CreateForm(tbq,bq);
bq.Preview;
Except
ShowMessage('System Error.');
end;
只能预览一次,第二次会提示‘a component named bq already exists ’
实在想不出来是怎么回事,大家帮帮忙吧!