有什么办法更改数据窗口页面的高度和宽度么,类似自定义纸张大小
dw_1.object.datawindow.print.Size =1
这个改大小,我想更改高或宽。
------解决方案--------------------
Painter: Cannot be set in painter.
Margin.Bottom An integer indicating the width of the bottom margin on the printed page in the units specified for the DataWindow.You can set Margin.Bottom when using SyntaxFromSql to generate DataWindow syntax.Painter: Bottom Margin option.
Margin.Left An integer indicating the width of the left margin on the printed page in the units specified for the DataWindow.You can set Margin.Left when using SyntaxFromSql to generate DataWindow syntax.Painter: Left Margin option.
Margin.Right An integer indicating the width of the right margin on the printed page in the units specified for the DataWindow.You can set Margin.Right when using SyntaxFromSql to generate DataWindow syntax.Painter: Right Margin option.
Margin.Top An integer indicating the width of the top margin on the printed page in the units specified for the DataWindow.You can set Margin.Top when using SyntaxFromSql to generate DataWindow syntax.
------解决方案--------------------
上面是PB 的帮助里复制来的,
在PB 开发环境下按F1 再索引 Print.property 即可以找到和DW 打印相关的所有设置选项。。。
------解决方案--------------------
当打印机纸张设置为自定义时,PB的DataWindow.Print.paper.size=256,DataWindow.Print.CustomPage.Length,DataWindow.Print.CustomPage.Width才生效
DataWindow.Print.paper.size=256 长度单位为mm
DataWindow.Print.paper.size=255 长度单位为1/100 mm
是否可以满足你的需求