Table Columns Widths not changing

hello, im using cellformat to establish cell widths. i want a table with 2 columns, first column with 300 points, second with 100 points. I understand a point = 1/72 inch. however, after setting widths, boths columns are the same width:

m_builder.CellFormat.Width = 300;

m_builder.InsertCell();

m_builder.Write(“xx”);

m_builder.CellFormat.Width = 100;

m_builder.InsertCell();

m_builder.Write(“xx”);

Try setting CellFormat.Width after calling InsertCell.

In your example:

First Width sets width for the first cell that is yet to be added to the table.
Then you insert first cell, add content to it and you are still inside the first cell when you set width second time. It applies to the first cell too because you are still inside the first cell.