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

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

VB6/Crystal Reports PDF Export

Reply to Message Icon

Name: byrnesit
Date: March 30, 2006 at 04:30:49 Pacific
OS: XPSP2
CPU/Ram: PM1.7
Product: 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



Sponsored Link
Ads by Google

Response Number 1
Name: jhunt303
Date: April 5, 2006 at 02:34:30 Pacific
Reply:

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...


0

Response Number 2
Name: byrnesit
Date: April 6, 2006 at 17:41:43 Pacific
Reply:

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


0

Response Number 3
Name: jhunt303
Date: April 10, 2006 at 03:10:10 Pacific
Reply:

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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: VB6/Crystal Reports PDF Export

crystal report 10 & vb6.0 www.computing.net/answers/programming/crystal-report-10-amp-vb60/14404.html

crystal reports/vb6 www.computing.net/answers/programming/crystal-reportsvb6/3452.html

generate Crystal Report 9 in VB6 www.computing.net/answers/programming/generate-crystal-report-9-in-vb6/8845.html