I am building a report using the microsoft.interop.excel library in C#.
I have something like this:
Range rangeTarget;
.
.
.
rangeTarget = worksheet.get_Range("C" + row, "N" + row);
I want the range to display its values as whole numbers i.e. with no decimal places. I've tried rangeTarge.AutoFormat, but have no idea how to use it.
Any Ideas ?
Thanks.
see MSDN
I don't know what the other formats are but you can look on the MSDN.