Aspose.Cells for Java is an award-winning Excel Spreadsheet Processing API that allows Java developers to embed the ability to read, write and manipulate Excel® spreadsheets (XLS, XLSX, XLSM, XLSB, XLTX, SpreadsheetML, CSV, ODS), HTML, MHTML, PDF, and image file formats into their own Java applications without needing to rely on Microsoft Excel®.
Directory | Description |
---|---|
Examples | A collection of Java examples that help you learn the product features. |
Examples.GridWeb | A collection of Java examples that help you learn and explore Aspose.GridWeb features. |
Plugins | Plugins that will demonstrate one or more features of Aspose.Cells for Java. |
TIFF
).ODS
) format.Microsoft Excel: XLS, XLSX, XLSB, XLT, XLTX, XLTM, XLSM, XML\ OpenOffice: ODS\ Text: CSV, TSV\ Web: HTML, MHTML\ Numbers: Apple's iWork office suite Numbers app documents
Fixed Layout: PDF, PDF/A, XPS\ Data Interchange: DIF\ Images: JPEG, PNG, BMP, SVG, TIFF, EMF, GIF
J2SE 7.0 (1.7)
, or aboveAspose hosts all Java APIs at the Aspose Repository. You can easily use Aspose.Cells for Java API directly in your Maven projects with simple configurations. For the detailed instructions please visit Installing Aspose.Cells for Java from Maven Repository documentation page.
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-Java
// The path to the documents directory.
String dataDir = Utils.getSharedDataDir(ConvertTableToRangeWithOptions.class) + "Tables/";
// Open an existing file that contains a table/list object in it
Workbook workbook = new Workbook(dataDir + "book1.xlsx");
TableToRangeOptions options = new TableToRangeOptions();
options.setLastRow(5);
// Convert the first table/list object (from the first worksheet) to normal range
workbook.getWorksheets().get(0).getListObjects().get(0).convertToRange(options);
// Save the file
workbook.save(dataDir + "ConvertTableToRangeWithOptions_out.xlsx");
Home | Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License