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

Export to PDF without getting the on-screen preview

Status
Not open for further replies.

Rimas

IS-IT--Management
May 25, 2001
9
IE
Hi

How can I export a PDF image of a report without getting the on-screen preview?
I use the Delphi and VCL.
Or I need to use RDC or ActiveX component to export (save)
to pdf file.

Cheers

Rimas
 
First, I believe that you need Crystal V8.5 to get the DLL for PDF export. For V8.0, you had to get it from Crystal directly (it wasn't in the V8 distribution).

This example is VB / RDC. Sorry, but I don't know Delphi.

Dim Report1 As CrystalReport1 'name of your RDC report
Dim crystalExportOptions As ExportOptions

Set crystalExportOptions = Report1.ExportOptions
crystalExportOptions.DestinationType = crEDTDiskFile
crystalExportOptions.DiskFileName = "youroutfilename" crystalExportOptions.FormatType = crEFTPortableDocFormat
Report1.Export False Brian J. Alves
Terrier Consulting, Inc.
Email: brian.alves@worldnet.att.net
VB / Crystal / SQLServer
(Currently available for consulting in Chicago)
 
FYI - Crystal Reports 8 that is included in the Info 7.5 package does have the capability to export in PDF format. The stand alone version 8 is Product 8.0.1.0 and the version bundled with Info 7.5 is 8.0.1.1.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top