Thanks Craig. I was able to use Rick Strahl's wwAPI to write the correct values into the PDFWriter registry settings.
Regards,
E.R.
>This is not a Crystal Reports question, but rather a PDF question as the PDF distiller is prompting you for the file. You should look at the download chapters for MegaFox on the Hentzenwerke website. It includes a chapter in PDFs.
>
>
>>I need to programatically print to a PDF file. I'm setting the printer driver to the PDFWriter, but I'm being prompted for a file name to print to. I'd like to set the file name and print without a prompt but I can't find the property.
>>
>> APP = Create('Crystal.CRPE.Application')
>> REPORT = app.OpenReport('xyz2pdf.rpt')
>> report.selectprinter('','Acrobat PDFWriter','Disk')
>> report.PrintOut(.f.) && Getting prompt for "Save PDF as" file name here.
>>
>>TIA,
>>
>>E.R.
Regards,
E.R. Gilmore