Skip to content

Commit

Permalink
Merge branch 'master' into 2.5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
pstoellberger committed Jul 2, 2013
2 parents b959339 + 5f6e8fb commit e65544a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
saiku.olap.nonempty = true
saiku.web.export.csv.name = saiku-export
saiku.web.export.excel.name = saiku-export
saiku.web.export.excel.format = xlsx

saiku.web.export.excel.numberformat=#,##0.00

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,10 @@ public Response getQueryExcelExport(
}
try {
byte[] doc = olapQueryService.getExport(queryName,"xls",format);
String name = SaikuProperties.webExportExcelName;
String name = SaikuProperties.webExportExcelName + "." + SaikuProperties.webExportExcelFormat;
return Response.ok(doc, MediaType.APPLICATION_OCTET_STREAM).header(
"content-disposition",
"attachment; filename = " + name + ".xls").header(
"attachment; filename = " + name).header(
"content-length",doc.length).build();
}
catch (Exception e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
saiku.olap.nonempty = true
saiku.web.export.csv.name = saiku-export
saiku.web.export.excel.name = saiku-export
saiku.web.export.excel.format = xlsx
saiku.web.export.excel.numberformat=#,##0.00

saiku.format.numberformat=#,##0.00
Expand Down

0 comments on commit e65544a

Please sign in to comment.