控制ActiveReport 1.0 中的纸张大小

jmlmj 2001-07-19 10:19:58
以下为控制代码:
Dim p1 As Variant
Dim p2 As Variant
Dim p3 As Variant

p1 = rpt.Printer.PaperSize
p2 = rpt.Printer.PaperHeight
p3 = rpt.Printer.PaperWidth

MsgBox rpt.Printer.PaperSize
MsgBox rpt.Printer.PaperHeight
MsgBox rpt.Printer.PaperWidth

rpt.Printer.PaperSize = 256
rpt.Printer.PaperHeight = p2
rpt.Printer.PaperWidth = p3

MsgBox rpt.Printer.PaperSize
MsgBox rpt.Printer.PaperHeight
MsgBox rpt.Printer.PaperWidth

显示的结果:
256
15304
11056
256
71968
720
照代码应该前三个显示与后三个显示的数值是一样但为什么会变动这么大。
...全文
104 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
hx 2001-09-09
  • 打赏
  • 举报
回复
会不会是单位,不一样。
hx 2001-09-09
  • 打赏
  • 举报
回复
UP
zongbing 2001-09-09
  • 打赏
  • 举报
回复
一定是单位不同或是打印得模式不同
jmlmj 2001-07-19
  • 打赏
  • 举报
回复
/
jmlmj 2001-07-19
  • 打赏
  • 举报
回复
?

7,763

社区成员

发帖
与我相关
我的任务
社区描述
VB 基础类
社区管理员
  • VB基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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