How to open a ".odt" file in browser instead of download it?
Posted on 2010-08-16
I'm trying to execute a jasper report that exports to odt (OpenOffice). The report is working fine, but when it opens, the browser asks if the user wants to open or to save the report. I want to open in the browser, like pdf. Is it possible?
I'm using this header:
resp.setHeader("Content-Disposition"," inline; filename=Report.odt");
facadeReport.executeODT( out, reportCmd.getReport(),map );