Create Excel files in java(invalid number) -


i have string "2,345".i want put excel cell.i did in excel file got "2,345" string.so please suggest me how can "2,345" number value same format used above(comma seperated).

thanks in advance.

remove comma before inserting excel, cast number before inserting, format column show comma.

string replace

in excel code format range commas is:

somerange.style = "comma"    'or, recorded version somerange.numberformat = "_-* #,##0_-;-* #,##0_-;_-* ""-""??_-;_-@_-"  'a simpler version.. somerange.numberformat = "#,##0" 

Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -