Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2070
PDF Report not opened in Adobe Reader 7.0
posted

Hai

I created pdf report using the following link code http://forums.infragistics.com/forums/t/2862.aspx. I used the CreateReport method as in the link for repeated header.

The pdf is created but while opening using Adobe Reader 7.0 it shows the error as in the attachment. But it opens in higher versions of Adobe 8.0>. Here the stream code at the end.

               //Set up the response for publishing the Report:
               theResponse.ContentType = "application/pdf";
                theResponse.AddHeader("Content-Disposition", "attachment; filename=" + fileName + ".pdf");
                //Write out to the response.Output Stream and you are done.
                theReport.Publish(theResponse.OutputStream, FileFormat.PDF);

Immediate help is welcome.