Template-based exports could be useful for boilerplate
content, like a company letterhead, etc...

Since these are Excel-specific config values, perhaps
table tag attributes is not where they belong, but in
excel-export-config properties, say
 
export.excel.template="path/to/template.xls"
export.excel.startRow=4
export.excel.startColumn=3

These could be set with the setProperty tag or in the
props file and made available to the excel through
TableProperties, which is obtained from TableModel.

DefaultHssfExportView could then open the template
workbook if one's configured and pass it to
HssfTableWriter, which would then need to change to no
longer assume its workbook is empty, but look look for
the configured startRow ans startColumn values.

Someone also asked a while back about basing PDF
exports on templates.  Perhaps, it would be worth
doing for PDF and RTF as well.

-Jorge

--- Karsten Voges <[EMAIL PROTECTED]> wrote:

> Hi all,
> I am thinking about enhancing the Excel/POI export
> functionality to
> use templates.
> Has anyone done something like this?
> My usage point would be this:
> <display:table id="row" name="${test}" export="true"
> excelTemplate="path/to/template.xls" startRow="4"
> startColumn="3" />
> 
> Is there a possibility to get this properties? The
> TableProperties,
> which are included in the TableModel only keep track
> of properties
> declared in files, or am I missing something here?
> Or can the TableModel hold the information itself?
> 
> Because if I could retrieve this information from
> the TableModel or
> similar this would be easy to implement.
> Anyone else interested?
> 
> Cheers,
> Karsten.
> 
> 
> _______________________________________________
> displaytag-devel mailing list
> displaytag-devel@lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/displaytag-devel
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to