Click here to Skip to main content
15,918,976 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have written a C# program that uses ITextSharp libarary to build a PDF document in memory in a Memory Stream. I want my application to automatically print the document to a certain printer with certain printer options (i.e duplex). All of the examples of silent printing seem to involve writing the PDF out to file and firing a Adobe Reader in a process and sending command line options. Is there a way to print using Print Document? Any advice on how to set the printer options? It will be a Richo printer if that helps.
Posted
Comments
Sandeep Mewara 9-May-11 10:58am    
Update from OP:
Additional information. It is a printer that seems to support direct pdf printing

I think one importent thing is, there must be one default printer need to set. And then set that printer to your utility and apply print command.
 
Share this answer
 
http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument.aspx

Hope this will help you.

Thanks and regards
Praveen
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900