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

The file is damaged and could not be repaired

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,
We currently use Crystal Reports 8.5 to generate PDF reports. I am able to view all the reports in Acrobat Reader (5.05) but a few of them are not opening in the browser (Internet Explorer 5.5 SP2) and gives the error "The file is damaged and could not be repaired".

The system runs on Windows 2000 Advanced Server and the call to open the file is Javascript method of window.open with the document path.

Document creation process seems to be ok as the same file opens in the browser on a different site running on Windows 2000 professional.

Could you suggest some ways to overcome this issue?

Thanks
 
Gantt,
I am having the same problem. Have you been able to resolve this? If so, what is the solution?

Thank you!
Karen
 
Try setting the content type, then execute the PDF file as if it were an ASP page. This does two things; (1) allows one to use relative paths and (2) prevent the actual path of the PDF file from being displayed in the bowser URL.

Response.ContentType = "Application/pdf"
Server.Execute strRelativeFilePath

This worked for me. I hope it helps.

Marc Mueller
mmueller@exervio.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top