margin属性值可以为百分比PB数据窗口打印位置调整
dw_1.object.datawindow.print.preview = "yes" //打印预览
dw_1.object.datawindow. = 25 //打印预览时的百分比大小
dw_1.object.datawindow.p = 100 //上页边距1厘米
dw_1.object.datawindow.print.margin.bottom = 100 //下页边距1厘米
dw_1.object.datawindow.print.margin.left = 100 //左页边距1厘米
dw_1.object.datawindow.print.margin.right = 100 //右页边距1厘米
dw_1.object.datawindow.print.preview.rulers = "yes" //预览时有标尺
dw_1.object.ientation = 1 //打印时横向
dw_1.object.ientation = 2 //打印时纵向
dw_1.object.datawindow.print.paper.size = 9 //设置纸张大小为"A4"
dw_1.object.datawindow.print.paper.size = 8 //A3
dw_1.object.datawindow.print.paper.size = 12 //B4
dw_1.object.datawindow.print.paper.size = 13 //B5
dw_1.object.lor = 1 //单
dw_1.object.datawindow. = 25 //打印预览时的百分比大小
dw_1.object.datawindow.p = 100 //上页边距1厘米
dw_1.object.datawindow.print.margin.bottom = 100 //下页边距1厘米
dw_1.object.datawindow.print.margin.left = 100 //左页边距1厘米
dw_1.object.datawindow.print.margin.right = 100 //右页边距1厘米
dw_1.object.datawindow.print.preview.rulers = "yes" //预览时有标尺
dw_1.object.ientation = 1 //打印时横向
dw_1.object.ientation = 2 //打印时纵向
dw_1.object.datawindow.print.paper.size = 9 //设置纸张大小为"A4"
dw_1.object.datawindow.print.paper.size = 8 //A3
dw_1.object.datawindow.print.paper.size = 12 //B4
dw_1.object.datawindow.print.paper.size = 13 //B5
dw_1.object.lor = 1 //单
dw_1.object.lor = 2 //彩
dw_1.object.datawindow.print.page.rangeinclude = 0 //打印所有页
dw_1.object.datawindow.print.page.rangeinclude = 1 //打印偶数页
dw_1.object.datawindow.print.page.rangeinclude = 2 //打印奇数页
dw_1.object.datawindow.print.filename = "fileName"//打印到文件
dw_1.describe('datawindow.printer') //当前打印机
dw_1.object.datawindow.print.page.rangeinclude = 0 //打印所有页
dw_1.object.datawindow.print.page.rangeinclude = 1 //打印偶数页
dw_1.object.datawindow.print.page.rangeinclude = 2 //打印奇数页
dw_1.object.datawindow.print.filename = "fileName"//打印到文件
dw_1.describe('datawindow.printer') //当前打印机
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论