>Hi all:
>
> After some work I managed to print a small one page report using ??
>
> SET PRINT ON
> SET CONSOLE OFF
> SET DEVICE TO PRINTER
> PRINTJOB
> ...
> Send everything using ??
> ...
> ENDPRINTJOB
>
>Problem 1:
> Output is still being shown in the active window. As if SET CONSOLE was ON
>
Try using '???' instead of '??' - this will also avoid character translation problems..
>Problem 2:
> When I look at "Print Manager" the job is still there!
> If I choose Purge Print Jobs from the menu it gets deleted, but then I go back to Fox and run the program again and it no longer prints! It still shows it in the active window though.
> Using VFP5
I haven't tried it in a while, but the following worked under FPD 2.5 to release print jobs. Add the following code after the ENDPRINTJOB:
SET PRINTER TO NUL
??? CHR(0)
SET PRINTER TO