>Raul, as I said in my earlier message, try putting "SET PRINTER TO" at the end of the job. Also, try "SET TALK OFF". This may prevent the information from being copied to the screen.
>
>HTH
>
>>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
>>
>>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
>>
>>Any ideas?
>>
>>TIA
Hi Barbara:
Actually SET TALK is always OFF, the problem was I was trying SET CONSOLE OFF from the command window and it should've been done from inside the program.
I tried your suggestion and here's what happens:
The first time I run the program the printer ejects a page and doesn't print anything. When I look at the spooler it still says "Spooling" under the Status column. Eventually I have to delete it. When I go back to VFP and I run the program again, I get a MessageBox saying "There was an error writing LPT1: for the printer {Generic/Text Only) Cannot access the port. It may be in use by another program."
I keep getting this even if restart VFP or try to print from another program like Notepad, I have to boot for it to go away.
At least before the output was being printed.
I got another reply saying to put SET PRINTER TO after the ENDPRINTJOB. Same thing happens.
Any ideas?
Thanks.
R. Davila
DBA / Network Administrator
Administracion de Fomento Comercial
Gobierno de Puerto Rico
Still waiting for FoxPro for LINUX