I am using the PrintPreviewDialog Window Form from the Toolbox.
It displays my RichTextBox contents correctly, but when I click on the Print
icon on this form it prints one blank page and no text.
How can I fix this to print the text that is being displayed?
Here is the code I use to bring up the form:
string stringText = helpTextOut.Text;
stringReader = new StringReader(stringText);
printPreviewDialog.Document = printDocumentHelp;
printPreviewDialog.FormBorderStyle = FormBorderStyle.Fixed3D;
printPreviewDialog.ShowDialog();
-Harry