c# - Aspose Cells - Preserver the leading zeros in a CSV -


i using aspose cells pretty simple report. problem have few fields have leading zeros. when opened in csv, not see leading zeros. if @ text, can see zeros

any ideas how keep leading zeros

thanks.

i dont feel perfect solution, able results wanted. formatted column string.format("=\"{0}\"", content.account_no)); had interate through rows

int curretcol = system.array.findindex<string>(clmary, (string r) => r.tostring() == "account_no");                 int currentrow = 1;                  foreach (glsearchdc content in gllist)                 {                     cell cell = worksheet.cells[cellshelper.cellindextoname(currentrow++, curretcol)];                          cell.putvalue(string.format("=\"{0}\"", content.account_no));                     content.account_no));                 } 

Comments

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -