|
-
Jul 6th, 2000, 01:26 PM
#1
Thread Starter
Lively Member
I have been reading the other threads and have found many ways to print. Currenty I build a string then pass it to the Printer control
-----------------------
strmsgbuffer = "TEST"
dlgPrint.ShowPrinter
Printer.Print strMsgBuffer
--------------------------
this works fine, except that the job stays in the printer queue until the program is closed. This is not going to work. Does anyone have any ideas.
Is there a way to force the printer queue to run the jobs pending.
thanks ahead of time
VB 6 Professional Edition
-
Jul 6th, 2000, 01:31 PM
#2
Use the EndDoc method.
Code:
strmsgbuffer = "TEST"
dlgPrint.ShowPrinter
Printer.Print strMsgBuffer
Printer.EndDoc
-
Jul 6th, 2000, 01:41 PM
#3
Thread Starter
Lively Member
thanks Megatron,
that did it
what does ENDDOC do anyways
VB 6 Professional Edition
-
Jul 6th, 2000, 06:21 PM
#4
Enddoc terminates a print operation sent to the Printer object, releasing the document to the print device or spooler. Say the user presses enter to start a new page and keeps going, this will not allow a blank page.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|