Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing to file without being prompted for the file name. 1

Status
Not open for further replies.

delphidestructor

Programmer
Oct 20, 2000
67
Can anyone tell me how to print a report to a file without being prompted for the file name? I am using the report designer components in Delphi, if that helps any. I cannot find anyway within CR9 to set the printer output to a file. I want to be able to print to file using the printer configured with the report and then at a later time send that file to the print queue. I can set up a printer that uses the correct driver and the output is directed to a file but I am still prompted for the file name using this driver. Is there anyway I can pass in the filename to direct the output to file using the report designer components to void being prompted? Mike
 
Have a look at the PrintoutEx() method of the Report object.

PrintOutEx ([promptUser], [numberOfCopy], [collated], [startPageN], [stopPageN], [printFileName As String])

Cheers,
- Ido


CUT, Visual CUT, and DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Thank you very much for the help. This was exactly what I was looking for. I cannot find this method in the RDC Browser but it is what I needed. Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top