Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Jul 2001
    Thanked 0 Times in 0 Posts

    printing forms with more text (vb6)

    Hello everyone,

    I am trying to print a form out through code, so all I do is make a command button with the following code


    Simple, but now what I want to do is when it prints out the form (it takes up very little space on a standard 8 1/2 X 11 paper, I want to either underneath or next to it have some text printed out. This text will be stored in a variable.
    How can I make this happen?

    Thanks and merry christmas to all.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Thanked 31 Times in 31 Posts

    Re: printing forms with more text (vb6)

    Instead of using Printform, you might use the technique described in MSKB article How To Print a Form That Is Too Large for the Screen or Page: put the contents of the form in a PictureBox control and use Printer.PaintPicture to print the PictureBox. This can be combined with the Printer.Print method to output text.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts