0

There are too many examples how to create EXCEL file, like this: create Excel with xPages

But I really need Excel xlsx format not xls. Just defining xlsx file extension and change content type doesn't help:

response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
4
  • It seems like, lotus notes Domino server doesn't support new doc formats like xlsx Commented Jan 3, 2019 at 3:37
  • it's just pure JavaScript Commented Jan 3, 2019 at 3:41
  • nope, your example about xPages, it is similar to JSF from Java World. xPages to generate files, uses Apache POI framework under the hood. JS code just interprets by the server Commented Jan 3, 2019 at 3:44
  • Take a look at Apache POI and XSSFWorkbook which is used to generate Excel spreadsheets in the xlsx format Commented Jan 3, 2019 at 7:11

1 Answer 1

4

Vlad, Setting the content type to xls or xlsx has the same effect: it tells the browser to hand over to Excel. It still would send HTML that excel renders. It is up to the user to save as xlsx.

If you really need a ready made xlsx you need to create an XAgent that renders the binary xlsx format. The easiest way is Apache POI library, which is available for XPages through OpenNTF.

Check the samples there. They should do what you need.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.