I would like to print a file using PrintDocument in C#. The file is simple HTML (I need it because I need the text in the file to be located in specific places within the page.)
My question is, how do I print the file so it will not print the HTML itself (tags, etc.) but the HTML as it would show in a web browser?
Use a web browser control and call the print method on it like so:
MSDN Article on doing this