469,643 Members | 1,486 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

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 1850
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
By using this site, you agree to our Privacy Policy and Terms of Use.