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