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 Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…