>*-- Send to second printer
> SET PRINTER TO NAME (la_printers[ln_useprn, 1])
> REPORT FORM (thisform.rptform) NOCONSOLE TO FILE &lc_psname
> *-- Create pdf
> = ps2pdf(lc_psname)
> *-- Restore to original printer
> SET PRINTER TO NAME (lc_oldprn)
>
>Nadja
>
>I tried setting the adobeps printer as the default printer, and the problem disappeared.
>
>The above code functioned ok in VFP7 and VFP8.
>
>The REPORT FORM is not respecting the set printer to and the file that is created is not a Postscript file, unless the postscript printer is the default.
>
>Sending a non postscript file to ps2pdf causes the crash.
>
>Bill Fitzgerald, MCP
>Woodbury Systems Group
Are you sure your report doesn't contain printer specific information? The file doesn't contain spaces? Did you try to set reportbehavior to 8?
If it's not broken, fix it until it is.
My Blog