fastreport 4.2 怎么样打印和预览,打印时怎么不出现预览窗口

dxgxk 2007-06-04 12:51:58
fastreport 4.2 怎么样打印和预览
好像和以前的版本不一样,

frxReport1->PrepareReport();
frxReport1->Print();
同样出现预览窗口,

另外PrepareReport()方法中需要一个bool型的参数,是什么意思。

查了很就找到资料,找到的都是 2.x版本的。
frReport->PrintPreparedReport("", 1, false, frAll); 根本不能用。
...全文
516 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
dxgxk 2007-07-28
  • 打赏
  • 举报
回复
frxReport1->PrepareReport(1);
frxReport1->PrintOptions->ShowDialog=false; //不出现打印设置窗口,需要用代码控制。
frxReport1->Print();
meimeizsq 2007-07-24
  • 打赏
  • 举报
回复
大家在用的过程中,发现4.2版本对汉字的支持怎么样?反正我用3.18对汉字支持不好。
Jim@luckeeinc.com 2007-07-06
  • 打赏
  • 举报
回复
frxReport1->PrepareReport(true);
frxReport1->ShowProgress = false;
frxReport1->Print();
ynszx 2007-07-06
  • 打赏
  • 举报
回复
frxReport1->ShowReport();即可

我也是昨天才摸索出来的。
dxgxk 2007-06-04
  • 打赏
  • 举报
回复
更正一下:显示的不是预览,是打印设置。。
CACACACACA 2007-06-04
  • 打赏
  • 举报
回复
那换成frxPreview1->PageSetup();看看

我这是4.0.X
dxgxk 2007-06-04
  • 打赏
  • 举报
回复
frxPreview1->PageSetupA(); 没有这么方法啊????
我的版本是4.2
CACACACACA 2007-06-04
  • 打赏
  • 举报
回复
function PrepareReport(ClearLastReport: Boolean = True): Boolean;

Description
Starts a report without a preview window. The parameter assignment is the same as in the "ShowReport" method. If a report is constructed successfully, this function returns "True."
CACACACACA 2007-06-04
  • 打赏
  • 举报
回复
frxPreview1->PageSetupA();

这个方法调用在BCB里是有问题.(DELPHI下无问题.)
所以需要改下源代码.把方法名改个名字子.如PageSetupABC;

604

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder VCL组件使用和开发
社区管理员
  • VCL组件使用和开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧