borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Printing recordsets)Next Topic (how to print out the drive or device name) New Topic New Poll Post Reply
AndreaVB Forum : Printing : printing
Poster Message
c.prinse
Level: Guest


icon printing

I have some problems with printing in VB

The text will be send to windows, but the printer only print if the program is unload

I use this code:

Printer.Print Text1.Text


thanks anyway

05-03-2003 at 05:21 PM
| Quote Reply
Shady
Level: VB Guru


Registered: 08-07-2002
Posts: 305
icon Re: printing

The reason you only get the text printed out if you end the program is because you are not telling the program you have finished printing.

You must end with :-

Printer.EndDoc

The printer then knows you are done and will print.

Regards

Shady

____________________________
I don't wanna die... but I ain't keen on livin' either

05-06-2003 at 08:29 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Printing : printing
Previous Topic (Printing recordsets)Next Topic (how to print out the drive or device name) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder