- Home
- DevShare
- Forums
- Wiki
- Products & Services
- Downloads
- Documentation
- Webinars
- Store
- Blog
BookModel book = BookModel.Factory.create(); //or JBook book = new JBook();
Document doc = book.getBook().getDocument();
Document doc = new Document(null, getServletContext().getResourceAsStream("/WEB-INF/templates/template.sod"), new DocumentOpenCallback()); BookModel book = BookModel.Factory.create(doc.getBook());
Document doc = new Document(null, path/file.sod, new DocumentOpenCallback()); BookModel book = BookModel.Factory.create(doc.getBook());
The byte array represents the spreadsheet. This byte array could come from a file upload mechanism, a spreadsheet stored in a database, etc.
Document doc = new Document(null, bytearray, new DocumentOpenCallback()); BookModel book = BookModel.Factory.create(doc.getBook());
Calling writeToBlob returns a byte array allowing you to store in a database, serialize in session, etc.
doc.fileSaveCopyAsByteArray(DocumentType.EXCEL_97_WORKBOOK, new DocumentSaveCallback());
book.getEntry();
book.getFormattedText(int sheet, int row, int col);
book.getFormula(int sheet, int row, int col);
book.getNumber(int sheet, int row, int col);
book.getText(int sheet, int row, int col);
book.getEntry(int sheet, int row, int col);
book.getSheet();
book.setSheet(int sheet);
book.getEntry("DefinedName");
XMLWriter xmlWriter = new XMLWriter(book.getBook()); xmlWriter.setWriteFormatAttributes(true); xmlWriter.write("A1:T40", out);