AutoWidthCols code example
Posted: Thu Feb 23, 2017 6:16 am
Dear Support,
I try to set the col width to auto. But it never works. Do you have any example code for "AutoWidthCols";
My code:
First column - fix width to 200.
XSS.XLS[0].Columns[0].CharWidth := 20;
XSS.XLS[0].Columns[0].PixelWidth := 200;
The other column - autowidth.
XSS.XLS[0].AutoWidthCols(1,100);
XSS.Invalidatesheet;
Any problem on my code?
I try to set the col width to auto. But it never works. Do you have any example code for "AutoWidthCols";
My code:
First column - fix width to 200.
XSS.XLS[0].Columns[0].CharWidth := 20;
XSS.XLS[0].Columns[0].PixelWidth := 200;
The other column - autowidth.
XSS.XLS[0].AutoWidthCols(1,100);
XSS.Invalidatesheet;
Any problem on my code?