ashish_me2
asked on
Printing HTML documents in C#
Hi,
We have a module in a C# Windows application that prints Images and Plain Text to the default printer using the PrintDocument class.
We need to extend the functionality to allow printing of HTML files also but are facing a problem. If the HTML file is read as a plain text file, it is sent to the printer as the actual HTML markup with all HTML tags and script on the printed document instead of the rendered view that we get on the browser.
Am looking for any pointers to solve this problem….
We have a module in a C# Windows application that prints Images and Plain Text to the default printer using the PrintDocument class.
We need to extend the functionality to allow printing of HTML files also but are facing a problem. If the HTML file is read as a plain text file, it is sent to the printer as the actual HTML markup with all HTML tags and script on the printed document instead of the rendered view that we get on the browser.
Am looking for any pointers to solve this problem….
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
There is already a similar question to this with an accepted answer:
https://www.experts-exchange.com/questions/21056137/Printing-HTML-or-DOC-documents.html
https://www.experts-exchange.com/questions/21056137/Printing-HTML-or-DOC-documents.html
ASKER
Thanx all of you for the valuable inputs.
-Ashish.
=====
-Ashish.
=====
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=1953&lngWId=10