Report.SetUserPaperSize(Length ,Width)
SetUserPaperSize Method (Report Object)
Use the SetUserPaperSize method to set the paper length and width for the report.
Syntax
Sub SetUserPaperSize (length As Integer, Width As Integer)
Parameters
| Parameter | Description |
以上帮助是从水晶报表网上查到的。但是根据测试长度单位好象不是 pixels
当我的尺寸是 7.5 x 10 CM 时,我各乘了 100,才正好符合我的纸张
.PaperSize = crPaperUser
.SetUserPaperSize 7.5 * 100, 10 * 100
.PaperOrientation = crPortrait
而 Margin 属性是 0.1 CM 相当于 57
.TopMargin = 56 * 3
.LeftMargin = 0
.BottomMargin = 0
.RightMargin = 0
设置报告纸张尺寸
本文介绍如何使用SetUserPaperSize方法来设定报告的纸张长度和宽度。通过将长度和宽度参数设置为像素值(实际可能为厘米单位),可以确保报告尺寸与实际纸张尺寸相符。文中还提到了边界(Margin)属性的设置。
2625

被折叠的 条评论
为什么被折叠?



