Re: JRPdfResource File not found error when using IE6
I finally solved it ;-) The trick was to override setHeaders in JRPdfResource Add: response.setHeader(Cache-Control, private); response.setDateHeader(Expires, -1); lizz wrote: I am creating a (jasper) pdf file using JRPdfResource in a JasperLink. This works fine in Firefox and Internet Explorer 7, but when I use Internet Explorer 6 I get an error message saying There was an error opening the document. The file cannot be found.. I also have an Excel link using JRXlsResource but this one works fine for all 3 browsers. Doesn anyone know why this happens? Thanks :-) -- View this message in context: http://www.nabble.com/JRPdfResource-File-not-found-error-when-using-IE6-tp20937848p20951219.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JRPdfResource File not found error when using IE6
I am creating a (jasper) pdf file using JRPdfResource in a JasperLink. This works fine in Firefox and Internet Explorer 7, but when I use Internet Explorer 6 I get an error message saying There was an error opening the document. The file cannot be found.. I also have an Excel link using JRXlsResource but this one works fine for all 3 browsers. Doesn anyone know why this happens? Thanks :-) -- View this message in context: http://www.nabble.com/JRPdfResource-File-not-found-error-when-using-IE6-tp20937848p20937848.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JRPdfResource File not found error when using IE6
I have found myself some weird behaviors with PDFs and IE... E.g. when trying to show a PDF in an iframe it would work for some versions of IE 6 and not with others (same IE6 but not exactly the same release). I never discovered why. Did you tried tricking it to think it is downloading a real PDF file? For instance, if you mounted a resource try doing it like yyy/myfile.pdf. That trick fixed my problem with iframes. Also on [1] there are some recommendations for writing servlets for servicing PDF, maybe you could find there some useful info. Best, Ernesto [1] http://itextdocs.lowagie.com/tutorial/general/webapp/ lizz wrote: I am creating a (jasper) pdf file using JRPdfResource in a JasperLink. This works fine in Firefox and Internet Explorer 7, but when I use Internet Explorer 6 I get an error message saying There was an error opening the document. The file cannot be found.. I also have an Excel link using JRXlsResource but this one works fine for all 3 browsers. Doesn anyone know why this happens? Thanks :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JRPdfResource File not found error when using IE6
I've had huge problems with this aswell, but it's long time since.. I think it where on wicket 1.2, where firefox would pop a dl and IE would open the doc/xls inline.. I guess it's not exactly the same... Ernesto Reinaldo Barreiro wrote: I have found myself some weird behaviors with PDFs and IE... E.g. when trying to show a PDF in an iframe it would work for some versions of IE 6 and not with others (same IE6 but not exactly the same release). I never discovered why. Did you tried tricking it to think it is downloading a real PDF file? For instance, if you mounted a resource try doing it like yyy/myfile.pdf. That trick fixed my problem with iframes. Also on [1] there are some recommendations for writing servlets for servicing PDF, maybe you could find there some useful info. Best, Ernesto [1] http://itextdocs.lowagie.com/tutorial/general/webapp/ lizz wrote: I am creating a (jasper) pdf file using JRPdfResource in a JasperLink. This works fine in Firefox and Internet Explorer 7, but when I use Internet Explorer 6 I get an error message saying There was an error opening the document. The file cannot be found.. I also have an Excel link using JRXlsResource but this one works fine for all 3 browsers. Doesn anyone know why this happens? Thanks :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]