Author: den2005 | Posted on: 8/18/2009 9:11:08 PM | Views : 251

Hi,
   I am fixing a bug that a pdf that has been downloaded that does not open in Adobe Reader Ver.7 but no problem opening it in ver.8 even
when installed in local pc is ver 7 or 8. Is there anyone have encountered this and fixed this?
   Opening the file, it shows this meesage "There was an error opening this document. The file is damaged and could not be repaired." Like to
download pdf that is readable in most versions of pdf (7 and higher). 
   Here is part of the codes:

Warning[] warnings; string[] streamids; string mimeType; string encoding; string filenameExtension; byte[] report = reportViewer.LocalReport.Render( "PDF", null, out mimeType, out encoding, out filenameExtension, out streamids, out warnings ); HttpContext.Current.Response.Clear(); HttpContext.Current.Response.AddHeader("content-disposition", ...

Go to the complete details ...