|
From: Scott B. <sco...@ru...> - 2005-01-18 19:50:28
|
Rob, Juergen, everyone, I've been trying to get a PDF generated by JasperReports to display in IE (both http and https). In the case of https, I get the "Unable to download file" error and under http I get the blank page. There is supposed to be a workaround in the AbstractJasperReportsView for these IE specific issues but it does not seem to work for me. Has anyone gotten this to work? If so was there anything special they needed to do to accomplish this? I am working with Build 190 I think. Thanks -Scott -- Scott Battaglia Application Developer, New Technology Group Enterprise Systems and Services, Rutgers University v: 732.445.0097 | f: 732.445.5493 | sco...@ru... "If you love life, don't waste time, for time is what life is made up of." ~Bruce Lee |
|
From: Rob H. <ro...@ca...> - 2005-01-18 23:12:34
|
Scott, I think there is a problem with the content-disposition settings for IE. I'm going to take a look at this tomorrow. Rob Scott Battaglia wrote: > Rob, Juergen, everyone, > > I've been trying to get a PDF generated by JasperReports to display in > IE (both http and https). In the case of https, I get the "Unable to > download file" error and under http I get the blank page. There is > supposed to be a workaround in the AbstractJasperReportsView for these > IE specific issues but it does not seem to work for me. Has anyone > gotten this to work? If so was there anything special they needed to > do to accomplish this? > > I am working with Build 190 I think. > > Thanks > -Scott > |
|
From: Scott B. <sco...@ru...> - 2005-01-19 04:58:26
|
Rob Harrop wrote: > I think there is a problem with the content-disposition settings for > IE. I'm going to take a look at this tomorrow. Thanks!! If you need me to test anything let me know. I already have an application set up to produce PDFs. -Scott |
|
From: Rob H. <ro...@ca...> - 2005-01-19 14:29:49
|
Scott/All, I updated AbstractJasperReportsView to set the Content-Disposition header to inline. Providing you give your report file the appropriate file extension it will render PDFs correctly in IE now. I tested this on 10 IE machines in the office and it worked nice. If you need more complex header manipulation I added the setHeaders() method to all you to pass in a Properties for any headers you want written to each response. Hope this helps. Rob Scott Battaglia wrote: > Rob Harrop wrote: > >> I think there is a problem with the content-disposition settings for >> IE. I'm going to take a look at this tomorrow. > > > Thanks!! If you need me to test anything let me know. I already have > an application set up to produce PDFs. > > -Scott > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > |
|
From: Scott B. <sco...@ru...> - 2005-01-20 15:35:21
|
Rob, Thanks! This works well. It may be important to note that this seems to work just for GETs and not POSTs or were you able to do POSTs also? -Scott Rob Harrop wrote: > Scott/All, > > I updated AbstractJasperReportsView to set the Content-Disposition > header to inline. Providing you give your report file the appropriate > file extension it will render PDFs correctly in IE now. I tested this > on 10 IE machines in the office and it worked nice. If you need more > complex header manipulation I added the setHeaders() method to all you > to pass in a Properties for any headers you want written to each > response. > > Hope this helps. > > Rob > > Scott Battaglia wrote: > >> Rob Harrop wrote: >> >>> I think there is a problem with the content-disposition settings for >>> IE. I'm going to take a look at this tomorrow. >> >> >> >> Thanks!! If you need me to test anything let me know. I already have >> an application set up to produce PDFs. >> >> -Scott >> >> >> ------------------------------------------------------- >> The SF.Net email is sponsored by: Beat the post-holiday blues >> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. >> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt >> _______________________________________________ >> Springframework-developer mailing list >> Spr...@li... >> https://lists.sourceforge.net/lists/listinfo/springframework-developer >> >> > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer |
|
From: Rob H. <ro...@ca...> - 2005-01-20 15:42:29
|
Scott, I didn't test POSTs - its interesting that they don't work though. I'll putsome more effort into this. You can try to manipulate the headers yourself using the headers property to see if you can come up with the magic combination. One thing I would try is to set Content-Disposition=inline;filename=myReport.pdf. It might be that IE doesn't use the URL filename with a POST. Juergen added a fix to write all the content to a buffer to get the length and then write this to to the response which is another problem IE faces. Rob Scott Battaglia wrote: > Rob, > > Thanks! This works well. It may be important to note that this seems > to work just for GETs and not POSTs or were you able to do POSTs also? > > -Scott > > > Rob Harrop wrote: > >> Scott/All, >> >> I updated AbstractJasperReportsView to set the Content-Disposition >> header to inline. Providing you give your report file the appropriate >> file extension it will render PDFs correctly in IE now. I tested this >> on 10 IE machines in the office and it worked nice. If you need more >> complex header manipulation I added the setHeaders() method to all >> you to pass in a Properties for any headers you want written to each >> response. >> >> Hope this helps. >> >> Rob >> >> Scott Battaglia wrote: >> >>> Rob Harrop wrote: >>> >>>> I think there is a problem with the content-disposition settings >>>> for IE. I'm going to take a look at this tomorrow. >>> >>> >>> >>> >>> Thanks!! If you need me to test anything let me know. I already >>> have an application set up to produce PDFs. >>> >>> -Scott >>> >>> >>> ------------------------------------------------------- >>> The SF.Net email is sponsored by: Beat the post-holiday blues >>> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. >>> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt >>> _______________________________________________ >>> Springframework-developer mailing list >>> Spr...@li... >>> https://lists.sourceforge.net/lists/listinfo/springframework-developer >>> >>> >> >> >> ------------------------------------------------------- >> The SF.Net email is sponsored by: Beat the post-holiday blues >> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. >> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt >> _______________________________________________ >> Springframework-developer mailing list >> Spr...@li... >> https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting > Tool for open source databases. Create drag-&-drop reports. Save time > by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. > Download a FREE copy at http://www.intelliview.com/go/osdn_nl > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > |
|
From: Rob H. <ro...@ca...> - 2005-01-18 23:28:45
|
Juergen, Can we hold the 1.1.4 release so I can get this fix in tomorrow? Rob Scott Battaglia wrote: > Rob, Juergen, everyone, > > I've been trying to get a PDF generated by JasperReports to display in > IE (both http and https). In the case of https, I get the "Unable to > download file" error and under http I get the blank page. There is > supposed to be a workaround in the AbstractJasperReportsView for these > IE specific issues but it does not seem to work for me. Has anyone > gotten this to work? If so was there anything special they needed to > do to accomplish this? > > I am working with Build 190 I think. > > Thanks > -Scott > |