Re: Print Form containing TextBoxes

Tech-Archive recommends: Fix windows errors by optimizing your registry



"DACCS" <DACCS@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F22E4673-F17C-4D05-8ECE-B73ADB04E475@xxxxxxxxxxxxxxxx

Mike, The first code you provided did exactly what I needed
(with a slight modification), print a form [snip] I simply modified
the font's name and size and removed the "Text1.Text" line
to print my form containing a grid of TextBoxes. But, I do not
know how to modify the second code listing to print the same
information:

I'm afraid you're still not quite getting it, Daccs (what's your real name,
by the way?). The code that I posted (and the code that most people post for
you) is not intended to "do the complete job that you want to do". That
would be too easy, and you would learn nothing by it. The code samples are
intended to perform a specific little task, in perhaps one or more different
ways, so that you can examine the code and examine the result of running it
and hopefully understand the logic behind it, so that you will then be in a
position to modify your own code using similar techniques so that it does
what you want it to do.

My own two little blocks of code for example (the code in the message you
are responding to) were designed to print to the Printer a "bitmap dump" of
a Form containing a Text Box with some text in it, so that you could then
compare that printout (the printed page) to the second block of code which
printed the same "Hello World" text to the printer, but in a completely
different way. Did you run that code (the two separate Command Button Click
events that produced two separate prined pages for you on the printer) and
did you compare the two pages that came out of your printer when you did so,
preferably using a magnifying glass? If you did then let me have your
comments on the printed output, and if you didn't then please do so now and
then let me have your comments.

Mike









.


Quantcast