|
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 > > |