471,873 Members | 1,907 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

PrintPreview

Hello,
I'm trying to print a simple string using the PrintPreviewDialog. I get the
string to show up in the PrintPreview dialog, but when I click the Printer
icon, it just prints a blank page. There's something I'm doing wrong. Can
someone give me some code to print a simple string in the PrintPreview
dialog box?
Thanks
Nov 15 '05 #1
1 1939
Randy,
You need to reset the stream position that you get your data from for
the second print call to work. I'd suggest 'Programming Windows in C#' by
Petzold for some examples.

Ron Allen
"Randy" <te**@temp.com> wrote in message
news:%2***************@TK2MSFTNGP11.phx.gbl...
Hello,
I'm trying to print a simple string using the PrintPreviewDialog. I get the string to show up in the PrintPreview dialog, but when I click the Printer
icon, it just prints a blank page. There's something I'm doing wrong. Can
someone give me some code to print a simple string in the PrintPreview
dialog box?
Thanks

Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by sachin | last post: by
1 post views Thread by Dev2004 | last post: by
11 posts views Thread by Adam Right | last post: by
9 posts views Thread by Adam Right | last post: by
reply views Thread by james | last post: by
6 posts views Thread by Stuart Nathan | last post: by
reply views Thread by YellowAndGreen | 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.