Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Export
-
Labels:None
Description
Displaytag should allow to use XLT files (Excel templates) in Excel export.
I found some info of it in this mailing list thread:
http://www.mail-archive.com/displaytag-devel@lists.sourceforge.net/msg03072.html
But did not find that that was realized nor any JIRA issue for this, so I am creating to let know that this function is needed.
I found some info of it in this mailing list thread:
http://www.mail-archive.com/displaytag-devel@lists.sourceforge.net/msg03072.html
But did not find that that was realized nor any JIRA issue for this, so I am creating to let know that this function is needed.
All modified sources I attached in this ticket.
The funtion works like this:
1. You add template in the form of normal XLS file into the jar/war of your application (so the class can load it by Class.getResourceAsStream)
2. On JSP page you add link to the template in tag in the form like this:
<display:table (...) export="true" excelTemplate="/template.xls" startRow="0" startColumn="0">
3. Here we are! The data would be shown onto template.xls provided - with colors, font formating etc.
startRow/startColumn still does not work - I will implement after these changes are agreed with the team.