Problem setting the width of a column in a range after moving it. Here is an example:
var notes = sheet.Cells.CreateRange(0, (int) Columns.Notes, sheet.Cells.MaxDataRow, 1);
notes.Name = “Notes”;AddFCI(sheet, TwoDecimalNumericStyle, NumberStyleFlag);</pre><pre style="font-family: Consolas; font-size: 13px; background-color: white; background-position: initial initial; background-repeat: initial initial;"> notes.MoveTo(0, sheet.Cells.MaxDataColumn + 1);
var column = sheet.Cells.Columns[notes.FirstColumn];
column.Width = 50;
column.ApplyStyle(WrapStyle, WrapStyleFlag);
var s = column.Style;
s.IndentLevel = 2;
column.ApplyStyle(s, WrapStyleFlag);
If comment out the MoveTo call, I get the desired result. If I leave it in, all the options are correct on column except for the width.
The AddFCI call is adding columns, so I am moving the notes range (which is just one column) to the end.