Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.Cells for Java 8.5.1 has exposed the Workbook.dispose method to release the unmanaged resources of the Workbook object. The dispose pattern is used only for objects that access unmanaged resources, such as file and pipe handles, registry handles, wait handles, or pointers to blocks of unmanaged memory. This is because the garbage collector is very efficient at reclaiming unused managed objects, but it is unable to reclaim unmanaged objects.
Java
//Create workbook object
Workbook book = new Workbook();
//Call dispose method
book.dispose();
Aspose.Cells for Java 8.5.1 has exposed the Cell.getHeightOfValue method to get the height of cell value. By using this method you can calculate height of the cell value and then set the height of the row of that cell respectively. Check the detailed article on how to calculate the cell height & width.
Aspose.Cells for Java 8.5.1 has exposed the enumeration com.aspose.cells.TableDataSourceType to retrieve the data source type of a ListObject. The TableDataSourceType enumeration as following fields.
With the release of v8.5.1, the Aspose.Cells API has exposed the readonly ListObject.DataSourceType property that can be used to detect the data source type of a ListObject.
Here is the simplest usage scenario.
Java
Workbook book = new Workbook("D:/book1.xlsx");
Worksheet sheet = book.getWorksheets().get(0);
ListObject listObject = sheet.getListObjects().get(0);
if (listObject.getDataSourceType() == com.aspose.cells.TableDataSourceType.QUERY_TABLE)
{
System.out.println("Data Source Type is Query Table");
}
else if (listObject.getDataSourceType() == com.aspose.cells.TableDataSourceType.SHARE_POINT)
{
System.out.println("Data Source Type is SharePoint Linked List");
}
else if (listObject.getDataSourceType() == com.aspose.cells.TableDataSourceType.WORKSHEET)
{
System.out.println("Data Source Type is Excel Worksheet Table");
}
else if (listObject.getDataSourceType() == com.aspose.cells.TableDataSourceType.XML)
{
System.out.println("Data Source Type is XML");
}
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.