HotXLS 文档

PaperSize 属性

返回或设置纸张的大小。读/写 LongWord

语法

property PaperSize: LongWord;

说明

PaperSize 可以为以下 XlPaperSize 常量之一
xlPaper11x17 11 in. x 17 in
xlPaperA4 A4 (210 mm x 297 mm)
xlPaperA5 A5 (148 mm x 210 mm)
xlPaperB5 A5 (148 mm x 210 mm)
xlPaperDsheet D 尺寸纸张
xlPaperEnvelope11 信封 #11 (4-1/2 in. x 10-3/8 in.)
xlPaperEnvelope14 信封 #14 (5 in. x 11-1/2 in.)
xlPaperEnvelopeB4 信封 B4 (250 mm x 353 mm)
xlPaperEnvelopeB6 信封 B6 (176 mm x 125 mm)
xlPaperEnvelopeC4 信封 C4 (229 mm x 324 mm)
xlPaperEnvelopeC6 信封 C6 (114 mm x 162 mm)
xlPaperEnvelopeDL 信封 DL (110 mm x 220 mm)
xlPaperEnvelopeMonarch 信封 Monarch (3-7/8 in. x 7-1/2 in.)
xlPaperEsheet E 尺寸纸张
xlPaperFanfoldLegalGerman 德式 Legal 折叠纸 (8-1/2 in. x 13 in.)
xlPaperFanfoldUS 美国标准折叠纸 (14-7/8 in. x 11 in.)
xlPaperLedger 账簿纸 (17 in. x 11 in.)
xlPaperLetter 信纸 (8-1/2 in. x 11 in.)
xlPaperNote 便笺 (8-1/2 in. x 11 in.)
xlPaperStatement 对账单 (5-1/2 in. x 8-1/2 in.)
xlPaperUser 用户定义
xlPaper10x14 10 in. x 14 in
xlPaperA3 A3 (297 mm x 420 mm)
xlPaperA4Small A4 小号 (210 mm x 297 mm)
xlPaperB4 B4 (250 mm x 354 mm)
xlPaperCsheet C 尺寸纸张
xlPaperEnvelope10 信封 #10 (4-1/8 in. x 9-1/2 in.)
xlPaperEnvelope12 信封 #12 (4-1/2 in. x 11 in.)
xlPaperEnvelope9 信封 #9 (3-7/8 in. x 8-7/8 in.)
xlPaperEnvelopeB5 信封 B5 (176 mm x 250 mm)
xlPaperEnvelopeC3 信封 C3 (324 mm x 458 mm)
xlPaperEnvelopeC5 信封 C5 (162 mm x 229 mm)
xlPaperEnvelopeC65 信封 C65 (114 mm x 229 mm)
xlPaperEnvelopeItaly 信封 (110 mm x 230 mm)
xlPaperEnvelopePersonal 信封 (3-5/8 in. x 6-1/2 in.)
xlPaperExecutive 行政用纸 (7-1/2 in. x 10-1/2 in.)
xlPaperFanfoldStdGerman 德式 Legal 折叠纸 (8-1/2 in. x 13 in.)
xlPaperFolio 对开纸 (8-1/2 in. x 13 in.)
xlPaperLegal 法律用纸 (8-1/2 in. x 14 in.)
xlPaperLetterSmall 小号信纸 (8-1/2 in. x 11 in.)
xlPaperQuarto 四开纸 (215 mm x 275 mm)
xlPaperTabloid 小报 (11 in. x 17 in.)

示例

本示例 sets the paper size to legal for Worksheet one

Workbook.Sheets[1].PageSetup.PaperSize := xlPaperLegal;