The source code describes what I want to achieve. Thanks
>Take a look at
http://west-wind.com/presentations/pdfwriter/pdfwriter.htm>
>>
>>I am printing some reports in my program to pdf using adobe pdf writer:
>>
>>
>>
>>set printer to name "Adobe PDF"
>>report form intrest.frx to printer noconsole
>>
>>
>>
>>When doing this I get a save filedialog to define the pdf file name and save it in the "document and settings" directory. Furthermore the pdf file gets opened after this.
>>
>>I want to print directly to the file and save it in my current directory programmatically w/o opening the file.
>>