cancel
Showing results for 
Search instead for 
Did you mean: 

Damaged .pdf file when exporting / printing

Former Member
0 Kudos

Post Author: darrens

CA Forum: Exporting

Hi,

I scoured Google, these forums, and Crystal support but haven't found a solution to my issue.

I have a Crystal report (version XIR2) served from an Enterprise server. I also have a ASP.NET C# application that calls and runs this report in a DHTML CrystalReportViewer. The actual report runs just fine.

Clicking the print button in the report viewer's top toolbar causes the viewer to attempt to export the report to a .pdf, from where you can actually print it. This is where my problem lies! When Adobe Reader opens and attempts to open the temporary .pdf file generated from the viewer, I get the message "Adobe Reader could not open 'filename.tmp' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded)." This also happens when trying to export the report directly into PDF format. Everyone who would run this report, including me, is using Adobe Reader 8.1.

Exporting to other file formats seems to work just fine. Excel and Word have no problems.

Also, interestingly enough, exporting to PDF and trying to print in Internet Explorer 7 works just fine! These problems seem to only occur in IE6. Unfortunately, it is not possible for us to use IE7 yet, so we are stuck with IE6. Additionally, we are stuck using the DHTML viewer, so other viewers, like the ActiveX or Java viewers, are not options for me.

I had found some articles in Business Object support saying this problem was related to WebSphere, and there were various solutions I found related to that. However, WebSphere isn't used anywhere in our organization, so this problem must be stemming from elsewhere.

Anyone have any ideas? Thanks in advance for taking the time to read / reply to this thread. If anyone needs more information, feel free to ask!

Thanks,Darren

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Post Author: fyz

CA Forum: Exporting

face similar problems

Former Member
0 Kudos

Post Author: fyz

CA Forum: Exporting

Hi,

I think your pdf file is probably damaged. There is a tool called Advanced PDF Repair. I have used it to repair many corrupt PDF files successfully. Its homepage is http://www.datanumen.com/apdfr/ Maybe you can have a try.

Alan

Former Member
0 Kudos

Post Author: netonomous

CA Forum: Exporting

I am having issues even getting the .pdf file to open during the export. Several tmp files are created, but no luck. If I take the file and try to open it with Acrobat I get the same email encoding error you keep receiving.

Any luck with your issue? See my posting dated July 26 titled "Error encountered in Export DLL:"

Thanks