Good morning everyone. I am using lib Microsof.Office.Interop.Word.dll
to print a word document.
When the document has only one page, printing works normally.
The problem is when you have more than one page, it does not work. No error or anything, just does not come out in the printer.
I'm using these parameters:
word.ActiveDocument.PrintOut(
true,
false,
Microsoft.Office.Interop.Word.WdPrintOutRange.wdPrintAllDocument,
Item: Microsoft.Office.Interop.Word.WdPrintOutItem.wdPrintDocumentContent,
Copies: "1",
//Pages: "1,2",
PageType: Microsoft.Office.Interop.Word.WdPrintOutPages.wdPrintAllPages,
PrintToFile: false,
Collate: true,
ManualDuplexPrint: false);
I already put Pages: "1,2", Pages: "1-2" and nothing, I already did without passing the arguments too, and nothing