找回密码
 立即注册

QQ登录

只需一步,快速开始

ji123

注册会员

5

主题

12

帖子

49

积分

注册会员

积分
49
ji123
注册会员   /  发表于:2022-2-16 16:21  /   查看:1688  /  回复:4
vs中新添加一个基于代码的区域报表 SectionReport1.cs.怎么在SectionReport1.cs报表中用代码设置SectionReport1.cs 打印时的纸张大小?

4 个回复

倒序浏览
Bella.YuanWyn认证
超级版主   /  发表于:2022-2-16 17:30:30
沙发
本帖最后由 Bella.Yuan 于 2022-2-17 08:50 编辑

您好,创建SectionReport后,使用sectionReport.Printer.PaperSize.Width=XX,sectionReport.Printer.PaperSize.Height=XX,就可以进行设置,可以参考一下下面的帖子回复:activereports10区域报表怎么设置打印纸张的大小
https://gcdn.grapecity.com.cn/fo ... 41395&fromuid=65049
(出处: 葡萄城产品技术社区)


回复 使用道具 举报
ji123
注册会员   /  发表于:2022-2-17 08:02:54
板凳
本帖最后由 ji123 于 2022-2-17 08:04 编辑
Bella.Yuan 发表于 2022-2-16 17:30
您好,创建SectionReport后,使用sectionReport.Printer.PaperSize.Width=XX,sectionReport.Printer.PaperS ...

多谢,我试一下看能不能行
回复 使用道具 举报
ji123
注册会员   /  发表于:2022-2-17 08:26:57
地板
Bella.Yuan 发表于 2022-2-16 17:30
您好,创建SectionReport后,使用sectionReport.Printer.PaperSize.Width=XX,sectionReport.Printer.PaperS ...

您好,按照如上代码,程序运行时报错 ,提示除非kind属性设置为custom否则无法更改papersize
回复 使用道具 举报
Bella.YuanWyn认证
超级版主   /  发表于:2022-2-17 09:18:48
5#
您好,可以参考一下下面的这个帖子:
ar区域报表如何加载打印机自定义的纸张,在预览和打印指定预先设置好的纸张?
https://gcdn.grapecity.com.cn/fo ... 4&fromuid=65049
(出处: 葡萄城产品技术社区)
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部