469,898 Members | 1,593 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,898 developers. It's quick & easy.

PrintPreviewDialog question

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;



Nov 16 '05 #1
0 1427

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Michael A. Covington | last post: by
1 post views Thread by Jack E. Hardie | last post: by
1 post views Thread by jacopomeucci | last post: by
2 posts views Thread by Richard MSL | last post: by
2 posts views Thread by peter.mcclymont | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.