How can I print an HTML string so all of the HTML tags are recognized and rendered correctly? I imagine it's possible to create a .HTML file and print it, but if there is a way to do this without creating extra files I'd be interested in learning how. Thanks!
Addendum:
pd.PrintPage += new PrintPageEventHandler(PrintDocument_PrintPage);
pd.Print();
More code:
static private void PrintDocument_PrintPage(Object sender, PrintPageEventArgs e) {
Font printFont = new Font("Courier New", 12);
e.Graphics.DrawString("<b>Hello</b> world", printFont, Brushes.Black, 0, 0);
}
Printed result:
<b>Hello</b> world