Package org.xlsx4j.samples
Class CreateSimpleSpreadsheet
java.lang.Object
org.xlsx4j.samples.CreateSimpleSpreadsheet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidaddContent(WorksheetPart sheet) private static voidprivate static voidprivate static voidprivate static CellcreateCell(String content) // Note: if you are trying to add characters, not a number, // the easiest approach is to use inline strings (as opposed to the shared string table).static void
-
Constructor Details
-
CreateSimpleSpreadsheet
public CreateSimpleSpreadsheet()
-
-
Method Details
-
main
- Throws:
Exception
-
addCoreProps
-
addExtendedProps
-
addContent
-
createCell
// Note: if you are trying to add characters, not a number, // the easiest approach is to use inline strings (as opposed to the shared string table). // See http://openxmldeveloper.org/blog/b/openxmldeveloper/archive/2011/11/22/screen-cast-write-simpler-spreadsheetml-when-generating-spreadsheets.aspx // and http://www.docx4java.org/forums/xlsx-java-f15/cells-with-character-values-t874.html -
addThemePart
private static void addThemePart(SpreadsheetMLPackage pkg) throws InvalidFormatException, jakarta.xml.bind.JAXBException, IOException - Throws:
InvalidFormatExceptionjakarta.xml.bind.JAXBExceptionIOException
-