Error generating PDF in IE, works in Fire Fox

Options
shahamar
edited February 11, 2022 in Analytics #1
I have a problem with PDF report on IE where as it works on FF.<br />
<br />
We user BIRT 2.2.1 engine pluged in to web application.<br />
<br />
Below is the URL to generate PDF through a BIRT API Deployed on Tomcat server. <br />
<br />
<a class='bbc_url' href='https://10.0.2.71/reports/frameset?__format=pdf&__report=UserActivity/ActivityReportForUsers.rptdesign&RP_st=06/11/2008'>https://10.0.2.71/reports/frameset?__format=pdf&__report=UserActivity/ActivityReportForUsers.rptdesign&RP_st=06/11/2008</a&gt; 01:40:12 PM&RP_et=06/11/2008 02:40:12 PM&RP_sid=f5efbf35fd301947_6205ef3_11a7915ef72_-7323&RP_tz=GMT-07%3A00&RP_userGroup=1&RP_unknown=false&RP_primarySortField=lusr&RP_primarySortOrder=asc&RP_st1=01/01/1970 00:00:00 AM&RP_numrows=10000&__id=40140924<br />
<br />
On IE 7 it gives blank window and no PDF comes up. When sniffed the response through HTTP debugger, PDf response is coming from server but it is corrupted(Not opening up through Acrobat reader 8.1.2).<br />
<br />
Where as same URL works fine with firefox 2.0.0 giving proper PDF report. <br />
<br />
Environment<br />
Birt Runtime: 2.2.1<br />
PDF jars: itext-1.5.2.jar, itextasian-1.5.2.jar<br />
PDF Emitter: org.eclipse.birt.report.engine.emitter.pdf_2.2.1.r22x_v20070921.jar<br />
<br />
It will be great if any one can point out where thing can go wrong.<br />
<br />
Thanks for your time.

Comments

  • Virgil Dodson
    Virgil Dodson E admin
    edited December 31, 1969 #2
    Options
    Hi shahamar,<br />
    <br />
    I haven't seen a case where the PDF is generated correctly and will show in Firefox, but not in IE. Do you have the same problem viewing PDF from known working reports, like from adobe's site: <a class='bbc_url' href='http://www.adobe.com/products/reader/'>http://www.adobe.com/products/reader/</a><br />
    It seems like you have an updated PDF viewer, can someone from another machine see the PDF just fine from the same server?
    Warning No formatter is installed for the format ipb
  • shahamar
    edited December 31, 1969 #3
    Options
    Thanks a lot vdodson for your reply.

    I have Acrobat reader 8.1.2 which is latest. Do you want me to try with previous version. Other developer are facing the same problem but they also have the same latest version of Reader.


    Few points to be mentioned
    1. We generate PDf report through BIRT API from our code which uses same BIRT engine embedded in our app. PDF is generated properly and getting mailed to us and we can open and see it.

    2. We also generate HTML BIRT report directly invoking (Through /fameset )the BIRT web app embedded in our application. If we try to export the report to PDF from this report PDF is getting generated and seen in both IE & FF.

    3. Now when we directly try to generate the PDF report invoking BIRT web app embedded in our application (through /frameset and __format=pdf) we get blank window in IE 7.0.5073.11. Same URL works in Fire Fox.
    Also, woth noticing fact is that I tried comparing this URL with the URL generated in Export to PDF functionality ( as in point 2 ) and both are same.

    Is there any browser information or some thing else is passed internally while export functionality which we could be missing?

    Curously looking for the reason...

    Thanks again for your help,
    Amar