472,144 Members | 1,917 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,144 software developers and data experts.

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;

printPreviewDialog.ShowDialog();

-Harry

Nov 16 '05 #1
0 1508

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
reply views Thread by Saiars | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.