PDA

Click to See Complete Forum and Search --> : Printing in VB5


CDT_SoC
Jan 14th, 2000, 02:26 AM
I am wondering how to print the current form in VB5.

I'm trying to wirte an order form program that you fill it in and print it out w/out saving.

Any help would be appreciated.


------------------
I'm a (S)eeker (O)f (C)hrist!
RU?

Frans C
Jan 14th, 2000, 02:35 AM
Try Me.PrintForm

CDT_SoC
Jan 14th, 2000, 03:08 AM
I'll try that.

I case you couldn't tell I'm a Newbie to VB I've built useless programs to use mainly single controls. I appreciate the help.


------------------
I'm a (S)eeker (O)f (C)hrist!
RU?

MartinLiss
Jan 14th, 2000, 04:59 AM
If PrintForm works for you, you may want to set the Visible property of some controls that aren't a part of the order (like command buttons) to False, and the set them back to True when printing is done. If your form and/or controls are colorful and you don't have a color printer, you can also save the BackColor, set it temporarily to vbWhite, and restore the saved BackColor after printing.

------------------
Marty