Convert column header in HssfTableScrollPaneUtils

This forum is used by users to request and discuss new product features. Please do not use this forum for technical support including bug reports.

Moderator: JIDE Support

Forum rules
Product suggestions only. Please do not use this forum for technical support including bug reports.

Convert column header in HssfTableScrollPaneUtils

Postby orttni » Thu Dec 30, 2010 1:40 am

The HssfTableScrollPaneUtils is a very nifty class to get table data into Excel. However - I lack the possibility to convert column names, i.e. is is the column names from the table model that are used but I'd like to translate them into current user's language before they're xported. I can see that in the super class HssfTableUtils there are some methods where you can specify a "columnNameConverter" which is an instanceof "StringConverter". It would be great if you could add another method to HssfTableScrollPaneUtils to accomplish this, e.g.
Code: Select all
public static boolean export(TableScrollPane table,
                             String fileName,
                             String sheetName,
                             boolean append,
                             StringConverter columnNameConverter)
                      throws IOException


This would be exactly what I need. Perhaps there is a way to accomplish this already?
orttni
 
Posts: 2
Joined: Thu Dec 30, 2010 1:26 am

Re: Convert column header in HssfTableScrollPaneUtils

Postby JIDE Support » Thu Dec 30, 2010 10:59 am

Will do so in 2.10.4.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Re: Convert column header in HssfTableScrollPaneUtils

Postby JIDE Support » Thu Dec 30, 2010 2:28 pm

Just so you know, this new API is added in 2.10.4 just released.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 37219
Joined: Sun Sep 14, 2003 10:49 am

Re: Convert column header in HssfTableScrollPaneUtils

Postby orttni » Mon Jan 10, 2011 12:12 am

Great!
orttni
 
Posts: 2
Joined: Thu Dec 30, 2010 1:26 am


Return to Product Suggestions

Who is online

Users browsing this forum: Google [Bot] and 11 guests

cron