I am reading a cell value from excel using a named range in my case when the column width is less than the value that is present in the cell and therefore it appears as ##### when it is a huge number.
when i read this from csharp it reads as #####. Any fix for this
Code example:
Excel.Application.get_Range(strRange, Type.Missing).Text.ToString() //If i make it Excel.Application.get_Range(strRange, Type.Missing).Value2.ToString() //and read any date string i get 40390
Without any reading code, I would suggest that you read the display line or similar information that Excel will update each time the line width changes.
You probably need to read a more raw value.
.Text , , Excel ( ####, ) .Value2 Excel.
/ Excel , 1900 , , 24 , .
, Format: (40390, "ddmmyyyy" ) (40390, "dd/mmm/yyyy" )
Perhaps you are trying to import negative dates? Excel does not handle these best results, since double dates usually work.
Source: https://habr.com/ru/post/1743499/More articles:Ошибка: "" и "" не могут перегружать друг друга - c#What steps should be taken to describe the architecture before starting a web project? - phpExtremely slow insertion from Delphi to a remote MySQL database - mysqlWhat is LDAP and when do you consider using it in web applications? - genericsBest practice for reusing model components? - language-agnosticIE6 and IE7 Input padding CSS - cssдеструкторы объектов gc-ed lua - garbage-collectionHow can I output an UTF-8 encoded XML file with the end of a unix line from ActivePerl on Windows? - unixStore PHP exceptions in an array - phpJavascript BBCode Parser распознает только элемент первого списка - javascriptAll Articles