I am using the following code while flush the stream on Internet Explorer 7.0
- Code: Select all
javax.servlet.ServletOutputStream sos = null;
// loadReportTemplate
InputStream reportTemplate = SoaUtil.loadReportTemplate(reportName, webAppAccess, trackingId);
SoaReportPreProcessor preProcessor = new SoaReportPreProcessor();
WordprocessingMLPackage wordMLPackage = preProcessor.createReport(webAppAccess, trackingId, countryCode, userId, reportTemplate, reportName);
webAppAccess.getHttpServletResponse().setContentType("application/vnd.openxmlformats-officedocument.wordprocessingml.document");
SaveToZipFile saver = new SaveToZipFile(wordMLPackage);
sos = webAppAccess.getHttpServletResponse().getOutputStream();
saver.save(sos);
sos.flush();
i open a new window for flushing this ,Earlier it was working fine,But now a days it start closing the browser winodw and word document does not get open.
Would appricate your help to provide any pointer for this
Regards
Anil