Re: IE open excel file directly but not save as

2011-09-26 Thread Chris Pratt
Gees, I hope not!!! I'd hate to go to a site and have my printer start pumping out paper. The best you can do is call document.print(); which will bring up the print dialog, but that should be as close to auto-shooting printouts as you can get. (*Chris*) On Mon, Sep 26, 2011 at 9:15 PM, Rakesh

RE: IE open excel file directly but not save as

2011-09-26 Thread Rakeshkumar Parmar
Hi, I am facing a similar problem. But instead of just opening a file, I want to force print . Is this possible using http headers or by any other mechanism ? I would really appreciate if there is any solution. Regards, Rakesh -Original Message- From: Emi Lu [mailto:em...@encs.

Re: [Struts2-jQuery-plugin]Model dialog autoclose

2011-09-26 Thread hailiang
hi,Johannes your suggest helps a lot,but it does not fully fulfil our goal. Through your method,the content in the dialog can be fade out.but the dialog title and overlay is unchanged .just like the image below: http://struts.1045723.n5.nabble.com/file/n4843969/%E5%9B%BE%E5

Re: [Struts2-jQuery-plugin]Model dialog autoclose

2011-09-26 Thread Johannes Geppert
With same simple jQuery functions you can fade out the dialog. You should simple place this lines in an onOpenTopics. See http://code.google.com/p/struts2-jquery/wiki/DialogTag#Topics Johannes - web: http://www.jgeppe

Re: IE open excel file directly but not save as

2011-09-26 Thread Emi Lu
All right, after so many testing with diff IE versions, here comes the trick: res.setHeader("Content-Disposition", "attachment;filename=\""+ "test.xls" + "\";"); inline -> attachment. Emi On 09/26/2011 02:05 PM, Emi Lu wrote: Hi Chris, thanks a lot! I updated to : res.setHeader("Cache-

Re: IE open excel file directly but not save as

2011-09-26 Thread Emi Lu
Hi Chris, thanks a lot! I updated to : res.setHeader("Cache-Control", "private"); res.setHeader("Cache-Control", "private, must-revalidate"); res.setHeader("Pragma","private"); res.setContentType("application/vnd.ms-excel"); res.setHeader("Content-Disposition", "inline"); res.setContent

Re: IE open excel file directly but not save as

2011-09-26 Thread Chris Pratt
Try removing the filename from the Content-Disposition header. "inline" doesn't support this attribute and maybe IE is assuming you mean "external" because it's there. (*Chris*) On Mon, Sep 26, 2011 at 10:30 AM, Emi Lu wrote: > Hello , > > I know its not really struts question. But maybe some

IE open excel file directly but not save as

2011-09-26 Thread Emi Lu
Hello , I know its not really struts question. But maybe someone knows the answer. IE cannot open an excel file directly (IE8,9) res.reset(); res.setHeader("Cache-Control", "private, must-revalidate"); res.setHeader("Pragma","private"); res.setContentType("application/vnd.ms-excel"); res.s