You mean after my line Report form ... ?
>Add "Set printer to" as a third line, to "release" the printer.
>
>>Hi,
>>
>>I have a program that runs on a customer server 24/7 and prints forms (orders). The printing is done in the timer of the form with the following code (simplified):
>>
>>
>>set printer to name (cPrinterName)
>>report form MyForm next 1 noconsole nodialog to printer
>>
>>
>>The value of the printer name (above variable cPrinterName) changes depandeing on value some other field.
>>
>>The customer complains (sometimes) that often the printing stops and what they have to do is go to the Printer server -> Services -> Restart Print Spooler.
>>
>>Can my program (the way I print as shown above) cause the problem with the Print Spooler? Anything is missing in m program?
>>
>>TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham