Hi,
I have defined columns something like this:
Worksheet worksheet = new Worksheet();
Columns xlCols = new Columns();
Column xlCol = new Column();
xlCol.Width = 20;
xlCol.BestFit = true;
xlCol.CustomWidth = true;
xlCol.Min = 2;
xlCol.Max = 6;
xlCols.Append(xlCol);
xlCol = new Column();
xlCol.Width = 30;
xlCol.BestFit = true;
xlCol.CustomWidth = true;
xlCol.Min = 7;
xlCol.Max = 9;
xlCols.Append(xlCol);
worksheet.Append(xlCols);
Eventhough BestFit = true, still all columns width is 30 only.
and I cannot find anything such as
xlCols.AutoFit(); in openxml sdk
Could someone please help me on this?