Release Unmanaged Resources of the Workbook

Release Unmanaged Resources of the Workbook

The following sample code shows how to make use of the Workbook.dispose() method.

// 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.getDataDir(ReleaseUnmanagedResources.class);
// Create workbook object
Workbook wb1 = new Workbook();
/*
* Call dispose method,It performs application-defined tasks associated with freeing, releasing, or resetting
* unmanaged resources.
*/
wb1.dispose();