I am having issues getting a few cells to display in text format for a csv
I have seen in excel you can do '00001 or =“00000” to preserve the leading zeros. I have seen using the ConvertNumericData = false will help But I had no luck. I am using v8 of aspose
Here is my code
Workbook workbook = new Workbook();
workbook.Settings.Region = Aspose.Cells.CountryCode.USA;
Worksheet worksheet = workbook.Worksheets[0];
worksheet.Name = “Data”;
ImportTableOptions tableOptions = new ImportTableOptions();
tableOptions.ConvertNumericData = false;
// worksheet.Cells.ImportCustomObjects(this.GLList, 0, 0, tableOptions);
worksheet.Cells.ImportCustomObjects(this.GLList, clmAry, true, 0, 0, ((System.Collections.ICollection)this.GLList).Count, true, “MM/dd/yyyy”, false);
string sourceData = “=Data!A1:AN” + this.GLList.Count.ToString();
Aspose.Cells.Style style = new Aspose.Cells.Style();
workbook.Save(sPath, SaveFormat.CSV);