I am attempting to set a column to display 4 decimal places and the following code from one of your responses in the forms is not working:
Workbook wb = new Workbook();
// Create a Worksheet to get the first Worksheet.
Worksheet sheet = wb.Worksheets[0];
// Create Cells to fetch the all the cells of first sheet.
Cells cells = sheet.Cells;
// Format every value in the first column to four decimal places.
cells.Columns[0].Style.Custom = “0.0000”;
// write a decimal value
cells[“A1”].PutValue(0.12);
// Save the excel file.
wb.Save(“Test.xlsx”);
What am I missing?
I have tried setting the number format on the styleflag and that still did not work.