本示例将第一个文档的纸张大小设置为 wpsPaperLegal 型。

Documents(1).PageSetup.PaperSize = wpsPaperLegal