-
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
-
Use the EndDoc method.
Code:
strmsgbuffer = "TEST"
dlgPrint.ShowPrinter
Printer.Print strMsgBuffer
Printer.EndDoc
-
thanks Megatron,
that did it
what does ENDDOC do anyways
-
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.