I am having some issues while copying sheets using Util.copySheets()
I dynamically create columns in a sheet and copy the sheet to a
different sheet belong to a different workbook. When I do this, I
seemed to be getting the default column width problem mentioned below in
an earlier thread.
I can confirm that dynamic column population works if I don't use
copySheets and save the original workbook.
I tried manually calling setDefaultColumn() on the newssheet before
Util.copySheets() but no luck.
Please let me know if there's anything I can do.
Thanks,
Jun
Re: [jXLS-user] Dynamic Column Ouput Hidden
From: Leo <[EMAIL PROTECTED]> - 2007-07-11 20:56
Hi Masaki,
This is a bug which happens because of specific behaviour of POI
HSSFSheet
getColumnWidth() method in case if columns have default column width.
The easiest way for you to fix it is to change default column width in
template.
So just try to resize excel columns in a template a bit (1 pixel
should be enough ).
Also I have made a change in SVN jXLS code that should fix this.
So the latest SVN code should resolve this issue automatically and
default column widths should work fine.
Any feedback would be appreciated.
Thanks,
Leo
Wednesday, July 11, 2007, 1:14:31 PM, you wrote:
> Hi,
> This could be a bug, but I'm not sure.
> When I try to create dynamic columns with jx:forEach,
> all the columns are hidden in the output Excel.
> What I did is as simple as this:
> 1st row, 1st column:
> <jx:forEach items="${cols}" var="col">
> 1st row, 2nd column:
> ${col.text}
> 1st row, 3rd column:
> </jx:forEach>
> data is output correctly, but all columns are hidden.
> Masaki
============================================================
The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader
of this message is not the intended recipient, or an employee
or agent responsible for delivering this message to the
intended recipient, you are hereby notified that any reproduction,
dissemination or distribution of this communication is strictly
prohibited. If you have received this communication in error,
please notify us immediately by replying to the message and
deleting it from your computer. Thank you. Tellabs
============================================================
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]