I am creating a table with documentbuilder but using the rowformat.allowautofit doesn't seem to make my cells auto fit to the text in them. here is the code i am using
DataTable dt = dsTable1.Tables;
foreach (DataRow row in dt.Rows)
foreach (DataColumn col in dt.Columns)
builder.RowFormat.AllowAutoFit = true;
Each cell in the table seems to be set to the default width value, which makes for a very ugly table. I would like the table to span the width of the whole page and any long text strings to preferably be on single lines within each cell. Any help would be greatly appreciated.