Possible duplicate:
C # Print (RichTextBox)
I am developing a C # application that receives orders from our servers, which works great, but I cannot figure out how to print HTML exactly the same as in a browser. You can usually use a web browser control and print it, but I need to be able to print in A4 and A5 format. I have been looking for a solution for a long time, but I can not find it.
I am currently using code that prints rtf formatted text that works, but it does not print HTML as it is viewed in a browser, which is crucial.
Edit: I am currently using the code that appears on this page , with a few changes that allow me to print in A5 format by changing the PaperSize setting. All that I tried, could not do what I wanted.
Edit 2: An HTML example of what needs to be printed. Ignore the messy code, it's just to show how it should look.
So to summarize:
- I need to be able to print HTML as shown in a web browser
- I need to be able to print it in A4 and A5
Thank you in advance!
source share