girish_patkar
10-25-2006, 01:17 AM
Hi Friends,
I am creating a jasper Report and exporting it to the ByteArrayStream using JRHtmlExporter. I am setting this ByteArrayStream to the response object and setting the header by using the following line
response.setHeader("Content-Disposition", "attachment;filename=\"Report.html\"");
I want this attachment to open in the new window in the client browser.
But the issue is, it is opening in the new window in some machines(Windows 2000 /IE 6.0 ) and it is opening in the same window in some other machines(Windows XP/IE 6.0 ) .
Please help me in fixing this issue.
I am creating a jasper Report and exporting it to the ByteArrayStream using JRHtmlExporter. I am setting this ByteArrayStream to the response object and setting the header by using the following line
response.setHeader("Content-Disposition", "attachment;filename=\"Report.html\"");
I want this attachment to open in the new window in the client browser.
But the issue is, it is opening in the new window in some machines(Windows 2000 /IE 6.0 ) and it is opening in the same window in some other machines(Windows XP/IE 6.0 ) .
Please help me in fixing this issue.