Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

override text in column header of a table in export #21

Open
GoogleCodeExporter opened this issue Nov 14, 2015 · 0 comments
Open

override text in column header of a table in export #21

GoogleCodeExporter opened this issue Nov 14, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

from mahesh r w

RE: Addon: Export Table to Excel
2/21/12 2:51 PM as a reply to Andreas Lüdtke.

2. Is there a way to override text in column header of a table in export? In my 
case, I don't have any text for a column header in table (it' normal column; 
not generated). While exporting this table, can I add text for the empty header 
of the column?

---

my response was:

For #2, one hack-ey workaround might be to set the column headers to what they 
should be for export, right before export, and then set them back afterwards. 
In the sample code, the headers get set with:

table.setColumnHeaders(new String[]{"Name", "Date", "Amount Earned", "Taxes 
Paid",
"Is Manager?", "Collapsed Column Test"});

At some point I may implement a more elegant solution.

Original issue reported on code.google.com by [email protected] on 17 Mar 2012 at 9:45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant