Print Preview in VB.NET

  • Thread starter Thread starter John Doe
  • Start date Start date
J

John Doe

I am sorry if this message repeats a question. My messages aren't
coming through my ISP.

I have been working on a small project that keeps track of a few
shopping lists and other items. I am trying to implement a Print
Preview function that shows what the shopping list will look like...
well, we all know what a Print Preview is.

The problem(s) that I'm finding are the facts that (1) I cannot seem to
figure out how to get my PrintDocument object to contain any data to
show in the dialog without actually printing it, and (2) I have been
living on Google for the last few nights, and have found nothing that
details how to associate or use a Graphics object with a PrintDocument
object in order to draw data on the PrintDocument.

Could someone here point me in the right direction, or explain to me
this (apparently) painfully obvious detail that I seem to be
overlooking? I would appreciate the help.

Thanks,
J.
 
* John Doe said:
The problem(s) that I'm finding are the facts that (1) I cannot seem
to figure out how to get my PrintDocument object to contain any data
to show in the dialog without actually printing it, and (2) I have
been living on Google for the last few nights, and have found nothing
that details how to associate or use a Graphics object with a
PrintDocument object in order to draw data on the PrintDocument.

Maybe this sample points you into the right direction:

<URL:http://dotnet.mvps.org/dotnet/samples/printing/downloads/PrintFramework.zip>
 
Herfried said:
Maybe this sample points you into the right direction:

<URL:http://dotnet.mvps.org/dotnet/samples/printing/downloads/PrintFramework.zip>

Actually... oddly enough... that did help. At first, it appeared to be
what I'd found before, but apparently, I had exhausted myself so much
looking for an answer, that I found it, but overlooked the simplicity of
how it all worked. Anyway, something dealing with the translation of
the german helped to strike me bluntly in the face.

Thank you :)

J.
 
Jay,

* Jay Banks said:
Actually... oddly enough... that did help. At first, it appeared to
be what I'd found before, but apparently, I had exhausted myself so
much looking for an answer, that I found it, but overlooked the
simplicity of how it all worked. Anyway, something dealing with the
translation of the german helped to strike me bluntly in the face.

Glad to hear that ;-).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top