I am using the following code to print a Word document from a C # application.
ProcessStartInfo info = new ProcessStartInfo(myDocumentsPath);
info.Verb = "Print";
info.CreateNoWindow = true;
info.WindowStyle = ProcessWindowStyle.Hidden;
Process.Start(info);
This works great, Word opens and prints the document, and then closes. The problem is that Word opens noticeably, despite CreateNoWindow = true and WindowsStyle = Hidden. I would expect these two options to mean that Word opened quietly.
EDIT: Please do not offer an automatic Word object model. I have many different types of documents that need to be printed (PDF, etc.). These are only the Word documents that are causing the problem at the moment.
Any thoughts?
TIA
Matt
source
share