找回密码
 立即注册

QQ登录

只需一步,快速开始

tangke888 Wyn认证
金牌服务用户   /  发表于:2024-10-18 21:36  /   查看:101  /  回复:1
1金币
代码执行打印时,如何设置只打印第一页



              GrapeCity.ActiveReports.PrinterSettings printerSettings = new GrapeCity.ActiveReports.PrinterSettings();
              printerSettings.ShowPrintDialog = ishowDiag;//是否显示打印属性对话框 false 不显示
              printerSettings.ShowPrintProgressDialog = true;


               //pageReport.Report.PageWidth = "7.4";
               GrapeCity.ActiveReports.Document.PageDocument pageDocument = new GrapeCity.ActiveReports.Document.PageDocument(pageReport);
               //printerSettings.prst
               pageDocument.Print(printerSettings);

1 个回复

倒序浏览
Bella.YuanWyn认证
超级版主   /  发表于:5 天前
沙发
您好,重复帖子,您可以参考下面这个帖子的回复:
如何指定打印的页码
https://gcdn.grapecity.com.cn/showtopic-228191-1-1.html
(出处: 葡萄城开发者社区)
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部