仅从 word 文档中每隔一页打印一次。我怎样才能做到这一点?
Print only every second page from a word document. How can I do that?
我想用 C# 制作一个 windows 表单程序,从另一个制作一个 word 文档并更改其中的一些文本。完成了,但我也想制作一个打印按钮,我需要在一个 sheet.
上打印文档
我想将 2 页文档打印在一张纸上 sheet 而程序需要使用的打印机无法一次性完成我需要放回纸张。
我尝试了一些方法,但其中 none 行得通。我搜索了大约 3 天,找到了一些解决方案,但其中 none 有效。每次程序想要在单独的 sheet 上打印第 2 页时,当我再次尝试只打印第二页时,问题就出现了,程序从第一页开始,然后继续。
Print only every second page from a word document. How can I do that?
如果您想指定要打印的页面,请查看此How to print specific pages from PrintDocument programmatically
I want to print the 2 paged document on one sheet and the printer what the program need to use cant do it one go I need to put back the paper.
它可以调整打印文档的大小以适应单个 sheet 或者如果您想连续打印,即双面打印,这是特定于您拥有的打印机并且您可能想要显示这样的打印对话框;
这将进一步引导您进入特定于您使用的打印机的属性,如下所示;
显示此打印对话框的代码;
PrintDialog printDialog = new PrintDialog {
Document = yourPrintDocument
};
printDialog.ShowDialog();
我想用 C# 制作一个 windows 表单程序,从另一个制作一个 word 文档并更改其中的一些文本。完成了,但我也想制作一个打印按钮,我需要在一个 sheet.
上打印文档我想将 2 页文档打印在一张纸上 sheet 而程序需要使用的打印机无法一次性完成我需要放回纸张。
我尝试了一些方法,但其中 none 行得通。我搜索了大约 3 天,找到了一些解决方案,但其中 none 有效。每次程序想要在单独的 sheet 上打印第 2 页时,当我再次尝试只打印第二页时,问题就出现了,程序从第一页开始,然后继续。
Print only every second page from a word document. How can I do that?
如果您想指定要打印的页面,请查看此How to print specific pages from PrintDocument programmatically
I want to print the 2 paged document on one sheet and the printer what the program need to use cant do it one go I need to put back the paper.
它可以调整打印文档的大小以适应单个 sheet 或者如果您想连续打印,即双面打印,这是特定于您拥有的打印机并且您可能想要显示这样的打印对话框;
这将进一步引导您进入特定于您使用的打印机的属性,如下所示;
显示此打印对话框的代码;
PrintDialog printDialog = new PrintDialog {
Document = yourPrintDocument
};
printDialog.ShowDialog();