Adding a table to a table Cell

Adding a table to a table Cell

Forum member · Jul 27, 2006
how do I add a table to a Table Cell This code doesn't threow an error but it doesn't do anyhting Either. Set MyPage = objDoc.AddPage() Set MyTable = MyPage.AddTable( -30, 20, 640, 640 ) ' Add columns to the table MyTable.AddColumn ( 110 ) MyTable.AddColumn ( 110 ) MyTable.AddColumn ( 110 ) MyTable.AddColumn ( 110 ) MyTable.AddColumn ( 110) ' Add columns to the table Dim MyRow1 Set MyRow1 = MyTable.AddRow( DPDF_Font_HelveticaBold, 50, "000000", "FFFFFF" ) MyRow1.Align = DPDF_Align_Center MyRow1.VAlign = DPDF_VAlign_Center MyRow1.AddCell ( "Header 1" ) MyRow1.AddCell ( "Header 2" ) MyRow1.AddCell ( "Header 3" ) MyRow1.AddCell ( "Header 4" ) MyRow1.AddCell ( "Header 5" ) Dim MyRow2 Dim MyCell1 Dim MyTable2 ' Set MyCell3 = MyRow4.AddCell() ' Adds a Area Group to the Cell ' Set MyAreaGroup = MyCell3.SetAreaGroup( 150, 150 ) Set MyRow2 = MyTable.AddRow() Set MyCell1 = MyRow2.AddCell(,DPDF_Font_HelveticaBold, 50, "000000", "FFFFFF",5) Set MyTable2 = MyCell1.SetTable( 0, 0, 500, 500 ) MyTable2.AddColumn ( 250 ) MyTable2.AddColumn ( 250 ) Dim MyRow1T2 Dim MyCell1R1T2 Set MyRow1T2 = MyTable2.AddRow(DPDF_Font_HelveticaBold, 50, "000000", "FFFFFF") MyRow1T2.AddCell("test") MyRow1T2.AddCell("test2")

Re: Adding a table to a table Cell

Support · Jul 27, 2006
Hello, The most likely reason you are not able to see the second table being added to the cell is because you are specifying the font size of 50 for the text in the first table and that occupies the entire table. Change the font size to a lower value (say 10 for e.g.) and you will be able to see the other table being added. Thanks, ceTe Software Support Team