Skip to Content
0
Former Member
Jul 17, 2007 at 04:23 PM

Damaged .pdf file when exporting / printing

1394 Views

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