office交流网--QQ交流群号

Access培训群:792054000         Excel免费交流群群:686050929          Outlook交流群:221378704    

Word交流群:218156588             PPT交流群:324131555

access设置报表打印时所用的纸张大小

2020-07-03 08:00:00
tmtony8
原创
20356

在access创建报表中,报表默认是A4纸的大小范围的。

因为打印的报表大小都可能不同,我们可以通过代码控制报表打印的纸张大小


Dim StrName As String
    On Error Resume Next
     StrName =“报表名称”
    DoCmd.OpenReport StrName , acViewPreview
    Reports(StrName).Printer.PaperSize = acPRPSEnvB5    '设置打印的纸张大小


PaperSize 属性一起用来指示在打印时要使用的纸张大小。

名称 说明
acPRPS10x14 16 10 x 14 英寸。
acPRPS11x17 17 11 x 17 英寸。
acPRPSA3 8 A3(297 毫米 x 420 毫米)
acPRPSA4 9 A4(210 毫米 x 297 毫米)
acPRPSA4Small 10 A4(小)(210 毫米 x 297 毫米)
acPRPSA5 11 A5(148 毫米 x 210 毫米)
acPRPSB4 12 B4(250 毫米 x 354 毫米)
acPRPSB5 13 B5(148 毫米 x 210 毫米)
acPRPSCSheet 24 C 型纸
acPRPSDSheet 25 D 型纸
acPRPSEnv10 20 信封 #10(4-1/8 英寸 x 9-1/2 英寸)
acPRPSEnv11 21 信封 #11(4-1/2 英寸 x 10-3/8 英寸)
acPRPSEnv12 22 信封 #12(4-1/2 英寸 x 11 英寸)
acPRPSEnv14 23 信封 #14(5 英寸 x 11-1/2 英寸)
acPRPSEnv9 19 信封 #9(3-7/8 英寸 x 8-7/8 英寸)
acPRPSEnvB4 33 信封 B4(250 毫米 x 353 毫米)
acPRPSEnvB5 34 信封 B5(176 毫米 x 250 毫米)
acPRPSEnvB6 35 信封 B6(176 毫米 x 125 毫米)
acPRPSEnvC3 29 信封 C3(324 毫米 x 458 毫米)
acPRPSEnvC4 30 信封 C4(229 毫米 x 324 毫米)
acPRPSEnvC5 28 信封 C5(162 毫米 x 229 毫米)
acPRPSEnvC6 31 信封 C6(114 毫米 x 162 毫米)
acPRPSEnvC65 32 信封 C65(114 毫米 x 229 毫米)
acPRPSEnvDL 27 信封 DL(110 毫米 x 220 毫米)
acPRPSEnvItaly 36 意大利式信封(110 毫米 x 230 毫米)
acPRPSEnvMonarch 37 君主式信封(3-7/8 英寸 x 7-1/2 英寸)
acPRPSEnvPersonal 38 信封(3-5/8 英寸 x 6-1/2 英寸)
acPRPSESheet 26 E 型纸
acPRPSExecutive 7 行政公文纸(7-1/2 英寸 x 10-1/2 英寸)
acPRPSFanfoldLglGerman 41 德国法律文书用复写簿(8-1/2 英寸 x 13 英寸)
acPRPSFanfoldStdGerman 40 德国标准复写簿(8-1/2 英寸 * 12 英寸)
acPRPSFanfoldUS 39 美国标准复写簿(14-7/8 英寸 x 11 英寸)
acPRPSFolio 14 对开纸(8-1/2 英寸 x 13 英寸)
acPRPSLedger 4 帐单(17 英寸 x 11 英寸)
acPRPSLegal 5 法律纸(8-1/2 英寸 x 14 英寸)
acPRPSLetter 1 信函(8-1/2 英寸 x 11 英寸)
acPRPSLetterSmall 2 简式信纸(8-1/2 英寸 x 11 英寸)
acPRPSNote 18 便笺(8-1/2 英寸 x 11 英寸)
acPRPSQuarto 15 四开本(215 毫米 x 275 毫米)
acPRPSStatement 6 报告单(5-1/2 英寸 x 8-1/2 英寸)
acPRPSTabloid 3 文摘(11 英寸 x 17 英寸)
acPRPSUser 256 用户自定义
 
    分享