Exporting a Trinidad Table to Excel

267 views Asked by At

How do I export a trinidad table into an excel format? I have <tr:table> and some values in it that are displayed using <tr:column>.

I want to export those values into an excel sheet.

1

There are 1 answers

4
Jasper de Vries On

You can't generate Excel sheets using Apache Trinidad. What you need to do is write an action which:

  1. converts the data to an Excel sheet (for example using Apache POI or Java Excel API) and
  2. gets the HttpServletResponse, resets it, sets the correct headers and outputs your Excel sheet.

See: