Computing.Net > Forums > Programming > VB6/Crystal Reports PDF Export

VB6/Crystal Reports PDF Export

Reply to Message Icon

Original Message
Name: byrnesit
Date: March 30, 2006 at 04:30:49 Pacific
Subject: VB6/Crystal Reports PDF Export
OS: XPSP2
CPU/Ram: PM1.7
Model/Manufacturer: Dell
Comment:

Hey guys,
I am using the crystal reports 8.5 ocx object in VB6 to do reports. I can display the reports on the screen and export to a PDF, but I cant figure out how to export to a PDF in code (so the user doesnt have to exort manually).
I can do it with word files etc, but its a bit useless as my report setup doesnt export to word properly.
Is there a way to do this? If so, how?

Thanks
Matt


Report Offensive Message For Removal


Response Number 1
Name: jhunt303
Date: April 5, 2006 at 02:34:30 Pacific
Subject: VB6/Crystal Reports PDF Export
Reply: (edit)

I've not done it in VB 6 but have in Delphi,
First I was able to configure the PDF in the VCL 'Export Options' then added the code:

Crpe1.ExportOptions.FileName := 'c:\Exports\Export.pdf';
Crpe1.Export;

This may be completely different, but I'm using Crystal 8.5 as well, so hopefully it is similar...


Report Offensive Follow Up For Removal

Response Number 2
Name: byrnesit
Date: April 6, 2006 at 17:41:43 Pacific
Subject: VB6/Crystal Reports PDF Export
Reply: (edit)

Couldnt find the 'vcl export options'.. was it in the report or was it in the crystalreport object?
Thanks


Report Offensive Follow Up For Removal

Response Number 3
Name: jhunt303
Date: April 10, 2006 at 03:10:10 Pacific
Subject: VB6/Crystal Reports PDF Export
Reply: (edit)

It's in the object, but it's part of the CR engine.


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: VB6/Crystal Reports PDF Export

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 3 Days.
Discuss in The Lounge