Quick summary
I am able to print out a Word document in C# using PrintOut()
function like so:
object missing = Type.Missing;
Word.Application app = new Word.Application();
Word.Document doc = null;
object template = @"/path/Template.docx";
doc = app.Documents.Open(template, ReadOnly: true);
app.Visible = false;
// Print here
doc.PrintOut();
Problem
What I realized is I can't print the document on both pages, if there are 2 pages. The 2 pages print 2 sheets, instead of printing on both sides.
I had a look here: https://docs.microsoft.com/en-us/office/vba/api/Word.Document.PrintOut nowhere it says anything about Printing on Both sides.
Question
What is a good method to print a Word.Document
in C# on both sides of paper?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…