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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing to PDFWriter & forcing a name to the printed document 1

Status
Not open for further replies.

dellyjm

Programmer
Apr 13, 2000
168
JM
I'm printing a Crystal Report using the Adobe PDFWriter. <br><br>I want to force a filename to the print out, so instead of a dialog box coming up and asking the user for the name they want to save the file as i'll be forcing the name.<br><br>Look at the code below and give me an idea what to do.<br><br>Thanks.<br><br>With CrystalReport1<br>.ReportFileName = &quot;F:\Advert_Iface\invoices.rpt&quot;<br>.Connect = &quot;DSN = plat_ar_live; UID = userid; PWD = pass;&nbsp;&nbsp;&nbsp;DSQ = CLASSIFIEDDB&quot;<br>.PrinterName = &quot;Acrobat PDFWriter&quot;<br>.Destination = crptToPrinter<br>'.PrintFileName = &quot;what do i put here?&quot;<br>.ParameterFields(0) = &quot;rundate; DATE(&quot; & DateParam & &quot;) ;TRUE&quot;<br>.Action = 1<br>End With<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top