Creating complex table through scripting [message #221455] |
Tue, 27 February 2007 15:04 |
Eclipse User |
|
|
|
Hi,
I recently posted a question about creating table dynamically to the report
and Jason put a sample code in which one can create a table and add it to
the report. Thanks Jason for providing the sample code. However, I think
the assumption in that code was that there is nothing in the layout and we
are adding a table into the blank layout. My situation is a little different.
I have to put logo and other text in the report appropriately. So the path
I followed is as below:
1. Create the report layout with necessary logo and text design.
2. Created a table just as a place holder.
Now in the script, I can access the tableHandle. I can then remove the existing
columns and headers and add my own columns and headers etc. However, my table
is more complex. I want to add cells with multiple colspans and rowspans
and then I have to add data etc. My question is how do I create such complex
table headers etc using scripting? Is there any tutorial on this. It would
be great if somebody can shed some light on this. Looking at the javadoc,
I could find LayoutTableModel and LayoutTable. I could get to LayoutTableModel
from TableHandle, but that's not much help. Instead I want to get to the
LayoutTable. Unless I missed something, I don't see how I can get hold of
the LayoutTable object from the TableHandle. Or may be my approach is totally
wrong and there is a completely different way to manipulate the table. I
would appreciate the help.
Thanks
Bidyut
|
|
|
Powered by
FUDForum. Page generated in 1.03055 seconds