Hi,
I see now.
This happens because of two jx:forEach loops in rows 14 and 15.
They copy the width of the original column B to every column being
iterated. Maybe I should disable this behaviour.
As a workaround for your case you can probably just extend column B width
in the template.
--
Leo
On Fri, Dec 23, 2011 at 3:25 AM, Onn Tai Yong <onn...@gmail.com> wrote:
> Hi Leo,
>
> Please find attachments. template.xls is my template and result.xls is
> the outcome.
>
>
> Noticed that the Disciplinary Letter column width is not preserved.
>
>
> Thanks..
>
>
>
>
> On Thu, Dec 22, 2011 at 10:41 PM, Leo <leon...@gmail.com> wrote:
>
>> In general jxls tries to preserve column width to be the same as in the
>> template.
>> But possibly there are some situations where this does not work. Can you
>> share your template and point me onto a column you would like to preserve
>> width for?
>>
>> Also as a workaround you can try to set column width with POI API in
>> template or (if this does not work) by post-processing Workbook.
>>
>> --
>> Leo
>>
>> On Thu, Dec 22, 2011 at 10:35 AM, Onn Tai Yong <onn...@gmail.com> wrote:
>>
>>> Hi there,
>>>
>>> Is there a way or a workaround to set the column width or row height?
>>> For instance, i have set my column width to 1.19" in the template, but the
>>> generated file gives only 0.96".
>>>
>>> Thanks
>>>
>>> --
>>> Regards,
>>>
>>> Onn Tai, Yong
>>> onn...@gmail.com
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Write once. Port to many.
>>> Get the SDK and tools to simplify cross-platform app development. Create
>>> new or port existing apps to sell to consumers worldwide. Explore the
>>> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
>>> http://p.sf.net/sfu/intel-appdev
>>> _______________________________________________
>>> jXLS-user mailing list
>>> jXLS-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/jxls-user
>>>
>>>
>>
>
>
> --
> Regards,
>
> Onn Tai, Yong
> onn...@gmail.com
>
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
jXLS-user mailing list
jXLS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jxls-user