The programatic change is to ReportServlet.java:
Code: Select all
String contentType = null;
String filename = null;
contentType = request.getParameter("CT");
filename = request.getParameter("FILE");
if(contentType != null) {
response.setContentType(contentType);
}
if(filename != null) {
response.setHeader("Content-Disposition", "attachment; filename=\""+filename+"\"");
}
CT - Content type (for excel use application/ms-excel)
FILE - what is going to be the filename that will show up in your download dialog (e.g. myreport.xls)
Hope it will help. If it makes into the official viewer, even better.