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
Post a Comment