

The selected answer above didn't fix my issue, but I finally figured it out. TODO add in standard things (text that is always the same, headers, logos, etc.) NewCell.CellValue = new CellValue("100") Set the cell value to be a numeric value of 100. In the new row, find the column location to insert a cell in A1.
:max_bytes(150000):strip_icc()/020-how-to-add-up-columns-or-ros-of-numbers-in-open-office-calc-cd26f0be6e6841329f90c6217539248d.jpg)
Height = 71.25 //change height based on info add the sheet to the workbook sheet aray
:max_bytes(150000):strip_icc()/007-how-to-add-up-columns-or-ros-of-numbers-in-open-office-calc-5f63fffb0e9a4acda83aaefa69215d4e.jpg)
Worksheet ws = new Worksheet(new SheetData()) WorksheetPart wspart = wbpart.AddNewPart() WorkbookPart wbpart = spreadsheetDoc.AddWorkbookPart() SpreadsheetDocument spreadsheetDoc = SpreadsheetDocumentType.Workbook) //TODO change path create the spreadsheet document with openxml See What am I doing wrong when I try to add columns? public static void createExcel() //TODO change to private The code below complies and runs, but leaves me with a corrupt excel document. The program runs and generates an excel file fine. Without this code: Columns cols = new Columns() 2.5), and I can create rows and cells, but I need to be able to set the column width and I can not do that correctly for some reason.
