2

我正在使用以下代码从我的 c# 应用程序创建一个 word 文档:

oWord = new Word.Application();
oDoc = oWord.Documents.Add(ref oMissing, ref oMissing, ref oMissing, ref oMissing);
oDoc.PageSetup.PaperSize = WdPaperSize.wdPaperLegal;

有没有一种方法可以指定(使用 c# 代码)打印选项

Zoom > "Scale to paper Size"

每次打印此文档时都要为 A4 吗?

提前致谢!

4

1 回答 1

2

You can set the options when printing the document: in the PrintOut method, specify these values:

PrintZoomPaperWidth = 11907
PrintZoomPaperHeight = 16839
于 2012-09-04T10:56:59.767 回答