I need to create a page footer that has 5 small tables in it. The first 4 tables are all on the same horizontal line in the footer. Each of these 4 tables has 2 rows. I was able to get the 4 tables to work properly and be spaced correctly by using the code below and setting the XX in "XXcm" to the amount I needed to indent for each (the code is a sample of one of the 4 tables).
Once I added my 5th table that needed to be below the first 4 tables I ran into a big issue. The table just sat on top of the other 4 tables. I tried putting the first 4 tables into 1 TextFrame and the 5th into another and that did not solve the problem. In fact, it created a new issue because each of the first 4 tables showed up like set of descending stairs, each table lower than the last, and the 5th table still showed up over top of my first table. How do I fix this?
Code:
footerTable = footerFirstLine.AddTable();
footerTable.Style = "Table";
footerTable.Borders.Color = TableBlackBorder;
footerTable.Borders.Width = 0.25;
footerTable.Rows.LeftIndent = "XXcm";
column = footerTable.AddColumn("5cm");
column.Format.Alignment = ParagraphAlignment.Center;
row = footerTable.AddRow();
row.HeadingFormat = true;
row.Format.Alignment = ParagraphAlignment.Center;
row.Cells[0].AddParagraph(" Quotation #:");
row.Cells[0].Format.Alignment = ParagraphAlignment.Center;
row.Cells[0].VerticalAlignment = MigraDoc.DocumentObjectModel.Tables.VerticalAlignment.Center;
row = footerTable.AddRow();
row.HeadingFormat = true;
row.Format.Alignment = ParagraphAlignment.Center;
row.Cells[0].AddParagraph("E######");
row.Cells[0].Format.Alignment = ParagraphAlignment.Center;
row.Cells[0].VerticalAlignment = MigraDoc.DocumentObjectModel.Tables.VerticalAlignment.Center;