6
Answers

print a word doc. using the PrintDocument class which supports setting the printer tray

srivalli.chavali

srivalli.chavali

19y
7.8k
1
Hi, I have to print a word document using C#.NET. I also have to customize the printing option, the Printer tray, programmatically. So, I have used the PrintDocument class available in C#. I'm afraid not, this class does NOT take the path of a word document to be printed as input. So, I tried to use StringReader object to read the word document line by line and set it as input to the PrintDocument class. This works fine if my word document contains simple text. But my word doc. also contains tables and other formatted text. I would really appreciate if anyone can suggest me how I could print a word doc. using the PrintDocument, or any other class for that matter, that supports setting the printer tray. Any information on the third-party tools to do the same is also appreciated. Thanks in advance. -Srivalli.
Answers (6)
Next Recommended Forum