fastreport自定义纸张为什么不生效

zlinlin 2012-12-17 03:44:38
预览和打印都是A4的格式,而且抬头还空白了一截。
void __fastcall TPartReport::frxReport1BeforePrint(
TfrxReportComponent *Sender)
{
for(int i=1;i<frxReport1->PagesCount;i++)
{
((TfrxReportPage*)frxReport1->Pages[i])->EndlessHeight=false;
((TfrxReportPage*)frxReport1->Pages[i])->PaperSize=256;
((TfrxReportPage*)frxReport1->Pages[i])->PaperWidth=2420;
((TfrxReportPage*)frxReport1->Pages[i])->PaperHeight=1400;
}
}
...全文
223 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
zlinlin 2012-12-20
  • 打赏
  • 举报
回复
自定义应该是什么呢?用DMPAPER_USER也不行
xjq2003 2012-12-19
  • 打赏
  • 举报
回复
((TfrxReportPage*)frxReport1->Pages[i])->PaperSize=256;//是这个设置的问题吧?

604

社区成员

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

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