aspose-cells / Aspose.Cells-for-Java

Aspose.Cells for Java examples, plugins and showcases
https://products.aspose.com/cells/java
MIT License
148 stars 102 forks source link

GitHub release (latest by date) GitHub all releases GitHub

Java API for Excel File Formats

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.

Download Aspose.Cells for Java Examples, Plugins and Showcases

Excel File Processing Features

Document Features

Worksheet Features

Data Management Features

Charting & Graphics Features

Advanced Features

Read & Write Spreadsheet Formats

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

Save Excel Files As

Fixed Layout: PDF, PDF/A, XPS\ Data Interchange: DIF\ Images: JPEG, PNG, BMP, SVG, TIFF, EMF, GIF

Supported Environments

Get Started with Aspose.Cells for Java

Aspose 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.

Convert Table to Range with Options using Java

// 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