找回密码
 立即注册

QQ登录

只需一步,快速开始

wuss

注册会员

3

主题

6

帖子

29

积分

注册会员

积分
29
  • 248

    金币

  • 3

    主题

  • 6

    帖子

最新发帖
wuss
注册会员   /  发表于:2023-6-12 16:31  /   查看:2304  /  回复:7
1金币
Activereport16 在winform程序中能使用代码进行打印方向的设置吗

最佳答案

查看完整内容

PageRep.Report.PageWidth = new Length(FDcWidth, Length.Unit.Centimeters); PageRep.Report.PageHeight = new Length(0, Length.Unit.Centimeters);

7 个回复

倒序浏览
最佳答案
最佳答案
wengMQ悬赏达人认证
银牌会员   /  发表于:2023-6-12 16:31:10
来自 4#
PageRep.Report.PageWidth = new Length(FDcWidth, Length.Unit.Centimeters);
                            PageRep.Report.PageHeight = new Length(0, Length.Unit.Centimeters);

评分

参与人数 2金币 +1332 收起 理由
Eden.Sun + 666 很给力!
Felix.Li + 666 很给力!

查看全部评分

回复 使用道具 举报
Eden.SunWyn认证
超级版主   /  发表于:2023-6-12 16:46:12
2#
您好,您试着设置一下打印方向:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
wengMQ悬赏达人认证
银牌会员   /  发表于:2023-6-12 18:00:36
3#
ViewPgReport.Document.Printer.Landscape = true;
回复 使用道具 举报
Eden.SunWyn认证
超级版主   /  发表于:2023-6-12 18:12:16
5#
wengMQ 发表于 2023-6-12 18:04
PageRep.Report.PageWidth = new Length(FDcWidth, Length.Unit.Centimeters);
                         ...

您可以参考一下这位大佬的回答
回复 使用道具 举报
wuss
注册会员   /  发表于:2023-6-13 08:14:31
6#
wengMQ 发表于 2023-6-12 18:04
PageRep.Report.PageWidth = new Length(FDcWidth, Length.Unit.Centimeters);
                         ...

请问下:FDcWidth是什么数据?
回复 使用道具 举报
wengMQ悬赏达人认证
银牌会员   /  发表于:2023-6-13 10:52:59
7#
FDcWidth是一个数字,比如21
回复 使用道具 举报
Bella.YuanWyn认证
超级版主   /  发表于:2023-6-13 12:25:25
8#
wengMQ 发表于 2023-6-13 10:52
FDcWidth是一个数字,比如21

感谢大佬帮忙回复,给大佬点赞
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部