|
To create a table using chart director |
Posted by Divya on Nov-07-2012 13:57 |
|
Hi,
I want to create a table structure using the chart director i tried doing with CDML Table but
ended up getting the outline of the table with no rows and columns .Please help me to get a
table of below structure using Chartdirector asap.
Thanks,
Divya
|
Re: To create a table using chart director |
Posted by Peter Kwan on Nov-07-2012 23:37 |
|
Hi Divya,
You just need to create the table and add contents to it, like:
//create the table
CDMLTable t = c.addTable(30, 30, Chart.TopLeft, 3, 3);
//add contents to the cells in the table
for (int x = 0; x < 3; ++x)
for (int y = 0; y < 3; ++y)
t.setCell(x, y, 1, 1, "(" + x + "," + y + ")");
Hope this can help.
Regards
Peter Kwan |
Re: To create a table using chart director |
Posted by n.syamprasad@gmail.com on Feb-28-2013 18:45 |
|
it helps me... thanks.
Peter Kwan wrote:
Hi Divya,
You just need to create the table and add contents to it, like:
//create the table
CDMLTable t = c.addTable(30, 30, Chart.TopLeft, 3, 3);
//add contents to the cells in the table
for (int x = 0; x < 3; ++x)
for (int y = 0; y < 3; ++y)
t.setCell(x, y, 1, 1, "(" + x + "," + y + ")");
Hope this can help.
Regards
Peter Kwan
|
|