Click here to Skip to main content
15,902,842 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello

I am sending some data to xmlExcel as below:

when data is string:
XML
String.Format("<Cell><Data ss:Type=\"String\">{0}</Data></Cell>", data);

when data is integer number:

XML
String.Format("<Cell ><Data ss:Type=\"Number\">{0}</Data></Cell>", data);

now how can I send my decimal column to excelXml?

thanks n advance
Posted
Updated 8-Jul-15 22:40pm
v3

1 solution

it is resolved
return String.Format("<cell>{0}", data.Replace("/","."));
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900