S
Stefan
How would I programatically format cells in Excel.
I want to display a value as such "0001234", and Excel autoformats the
cells and strips out the leading zeros.
If I format the cells as Text format, then the zeros are preserved.
I tried doing something like this:
worksheet.Columns.AutoFormat(Microsoft.Office.Interop.Excel.XlRangeAutoFormat.xlRangeAutoFormatNone,
false,true,true,true,true,true);
but that did not make a difference (and makes the file size much much
bigger)...
Thanks,
Stefan
I want to display a value as such "0001234", and Excel autoformats the
cells and strips out the leading zeros.
If I format the cells as Text format, then the zeros are preserved.
I tried doing something like this:
worksheet.Columns.AutoFormat(Microsoft.Office.Interop.Excel.XlRangeAutoFormat.xlRangeAutoFormatNone,
false,true,true,true,true,true);
but that did not make a difference (and makes the file size much much
bigger)...
Thanks,
Stefan