I add a table and set column width with bellow code ,
- Code: Select all
grid.Style.CellPadding = new PdfPaddings(3f, 3f, 3f, 3f);
grid.Columns.Add(9);
width = page.Canvas.ClientSize.Width - (grid.Columns.Count + 1);
grid.Columns[0].Width = width * 0.03f;
grid.Columns[1].Width = width * 0.43f;
grid.Columns[2].Width = width * 0.08f;
grid.Columns[3].Width = width * 0.05f;
grid.Columns[4].Width = width * 0.09f;
grid.Columns[5].Width = width * 0.09f;
grid.Columns[6].Width = width * 0.09f;
grid.Columns[7].Width = width * 0.05f;
grid.Columns[8].Width = width * 0.09f;
The out put as bellow
but the table is not cover available width of the page .How to solve this.