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