>I am trying to print a VFP9 report to a file using "Apple Color LW 12/660 PS" printer driver. However, my .PS file always comes back as zero bytes.
>
>Here is my code:
>
>***My code.
>SET PRINTER TO NAME "Apple Color LW 12/660 PS"
>SELECT temp
>REPORT FORM testpdf.FRX TO FILE c:\apps\junk\myfile.ps NOCONSOLE
>***
>
>Why is my .PS file always being created with zero bytes?
>
>I do have Acrobat PDFWriter, Acrobat Distiller and Apple Color LW 12/660 PS all installed. Is there a setting I am missing somewhere that prevents my .PS file from getting created?
It should get to full length once it's closed. Try adding the line
set printer to
That should close the output. Though I really don't understand why doesn't it close automatically after you're done.