TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
srivalli.chavali
NA
13
0
print a word doc. using the PrintDocument class which supports setting the printer tray
Mar 2 2005 5:26 PM
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.
Reply
Answers (
6
)
pasting text into excel
How to execute a command