How to print a docx to a specific printer using Microsoft.Office.Interop.Word.Document.PrintOut()
This seems like such a simple need, but for some reason I cannot find how I can accomplish this. I have code like this: Microsoft.Office.Interop.Word.Application word = new Microsoft.Office.Interop.Word.Application(); MemoryStream documentStream = getDocStream(); FileInfo wordFile = new FileInfo("c:\\test.docx"); object fileObject = wordFile.FullName; object oMissing = System.Reflection.Missing.Value; Microsoft.Office.Interop.Word.Document doc = wordInstance.Documents.Open(ref fileObject, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref