Click here to Skip to main content
15,891,840 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,
How we can print any docs ,pdf file with the PrintDocument in asp.net web application
Posted
Updated 30-Aug-18 2:20am
Comments
[no name] 17-Jul-14 10:56am    
Any idea on how many times you are going to repost this same thing over and over? Especially when you don't even bother to respond to requests for clarification on what it is that you are doing... Do you have any idea what it is that you are doing? Or are you just guessing?

1 solution

PrintDocument can print anything you can "draw" using System.Drawing.Graphics class which sadly, it does not support PDF, nor Docx, etc but just simple elements like lines, rects, ellipses, text and images. If you want to print doc, pdf, etc to the client printer you can just let the user to download the document and print it "manually" or try this code BUT it requires the client to have installed Word for doc, Adobe Reader for PDF + another tool.
 
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