I have two tables the first table is the primary table called datatable and has 5 columns The second table I want to nest in the first table and it is called sampleRefTable and has three columns
I nest it using the following code dataTable.AddCell("D1"); dataTable.AddCell("D2"); dataTable.InsertTable(sampleRefTable,); The problem is that it places all three columns in the third cell but does not colspan the remaining 3 cells in the dataTable I need the 3 columns to colspan the remaining 3 columns of the dataTable. My Code: iTextSharp.text.Table sampleRefTable = new iTextSharp.text.Table(3); sampleRefTable.CellsFitPage = true; sampleRefTable.BorderWidth = 1; sampleRefTable.BorderColor = new Color(0, 0, 255); sampleRefTable.Padding = 0; sampleRefTable.AddCell("s1"); sampleRefTable.AddCell("s2"); sampleRefTable.AddCell("s3"); Cell sampleDataCell = new Cell(sampleRefTable); sampleDataCell.Colspan = 3; iTextSharp.text.Table dataTable = new iTextSharp.text.Table(5); dataTable.CellsFitPage = true; dataTable.BorderWidth = 1; dataTable.BorderColor = new Color(0, 0, 255); dataTable.Padding = 0; dataTable.AddCell("D1"); dataTable.AddCell("D2"); dataTable.AddCell(sampleDataCell); document.Add(dataTable); -- <!-- Begin Email Policy --> EMAIL CONFIDENTIALITY This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. The recipient should check this email and any attachments for the presence of viruses. SYSTEM MONITORING Emails sent to and from this account can be monitored without prior notification. I reserve the right to take legal action and/or disclose the contents of any email or file to the appropriate Federal authorities. <!-- End Email Policy --> ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/