3
I’m putting together a C#Orders report, I’m using the library Microsoft.Interop.Excel
and I face a problem:
It is necessary to include in this report the Request number and when presented in Excel, it comes in Exponential Format: 7,80005E+12
, and the original would be: 78000496698755
.
I read on the Web that putting an Apostrophe before the text it would come correct, the problem is that this number is necessary for other conversions in and out of the program file and this apostrophe is barring some of these conversions.
My question is: Is there any type of formatting that I can put for the content to come correctly, I tried the code below, but without success:
NumberFormat = "@";
take a look: http://stackoverflow.com/questions/3879463/parse-number-from-exponential-notation
– Thiago Friedman
Almost that Thiago, the number is there, but Excel, by default converts it to Exponential (God knows why), I tried to use it here but it’s still the same
– Guilherme Golfetto