This project has moved and is read-only. For the latest updates, please go here.

Table size

Oct 27, 2016 at 7:02 AM
Hi, it is possible to modify the size of the table, as in the picture example?
Oct 27, 2016 at 11:24 PM
Try using Table.SetWidths();
            DocX doc = DocX.Create(@"C:\users\edwar\documents\test.docx");
            Table tab = doc.AddTable(5, 3);
            tab.Alignment = Alignment.left;
            tab.Design = TableDesign.MediumGrid1;
            var widths = new float[] { 100f, 200f, 100f };
The width of the table will be the sum total of the widths you give for each column.