Hi Hans,
You can use free wwPdf class from
http://west-wind.com/presentations/pdfwriter/pdfwriter.htm that handles PDfWriter quirks.
>I'm having some strange issues with PDF writer. Here's my code:
>
>SET PRINTER TO NAME "Acrobat pdfWriter"
>lcOut = 'OUT\' + lcStem
>REPORT FORM HsaContrib NOCONSOLE TO FILE (lcOut)
>
>My code should create a file in the OUT subfolder, which it does sometimes, but the file is empty. It also creates a file in the root folder, which is not empty. I'm not asking for two files.
>
>I tried giving up and putting the file in the root folder, but then ran into other issues.
>
>Sometimes it wont print the file, saying that a file already exists, which I take to mean some sort of temporary acrobat file. I can see the file in the windows printer folder. It says its deleting, but never does. Sometimes I just get an error ERROR LOADING PRINTER DRIVER.
>
>I tried to fix the empty files with SET PRINTER TO DEFAULT, and SET PRINTER OFF, but that didnt work.
>
--sb--