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

Export Crystal 8 report to pdf?

Status
Not open for further replies.

tb2007

Programmer
Apr 2, 2005
33
YU
I have VB application with Crystal 8 reports. I need to export report to pdf, but Crystal 8 does not support this.
Can anybody help me?
 
You need the PDF export DLL which was first available under Cr 8.5. Sorry to say this, but you might need to upgrade your Crystal version.

One thing to consider if the rest of your app is forced to stay in the CR 8.0 world, is to create a stand alone component using CR 9, 10 or XI. Those versions will co-exist with prior versions of Crystal.

Or you could integrate your code with a 3rd party product that does the PDF export using a command line option. My cViewBATCH could do this for you.

Editor and Publisher of Crystal Clear
 
I have crxf_pdf.dll but it doesn't work. Upgrade to Crystal 9,10... is not possible now.
Export using a command line is not convinient, because my client want to click button and to save report to pdf.
I made function to export to rtf, but some data from report are missing. It is not WYSIWYG.
Do you know some stand alone component?
 
Try exporting to RTF format, and then use some third party component to export that rtf file to PDF.
 
Thank you, I installed Crystal 8 patch and now I can export to doc, rtf....it is not empty zero byte any more.

But, when I want to export to pdf I get message Export failed. I have crxf_pdf.dll but something is wrong.

RTF is not good, some data are missing. For instance, on each page I have in footer "Page x of y", but when I export to rtf, each page has "Page 1 of 1", and my client want me to correct this.
 
Oh, and use just "PageNumber" instead of "Page N of M". Possibly include the Total pages info on just the first page using a seperate formula for TotalPages (you may need to use additionally WhilePrintingRecords; OnLastRecord)
 
Page number is not the only problem. When user select some criteria for the report I show that criteria on report, and it is text in 2 lines...But when I export to rtf , client can only see the first line....
And client is the low!
 
I tried to make my function to export to pdf. But I got error Missing or out of date export dll.
I have u2fpdf.dll and crxf_pdf.dll, what else is missing?
 
I guess you missed when I wrote two posts ago:

"I think crxf_pdf.dll is only possible with CR 8.5 and higher."

So, pick another export format which is satisfactory and export it to that (maybe MS Word), then use a third party tool to convert the exported Doc to PDF (Word 2008 can do this with an add-on).
Or upgrade to a higher CR Version.
 
I think crxf_pdf.dll is only possible with CR 8.5 and higher."


I found this and if I understood it is fix for Crystal 8.

Now I delete crxf_pdf.dll from Crystal directory, so I have only u2fpdf.dll . When I export to pdf, file is made but without data, only header and I got message "Failed to export the report"
 

>and if I understood it is fix for Crystal 8.

The link and artikel you posted refers to CR 8.5 and not 8.0.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top