Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Workbook object now implements the IDisposable interface which has a single method Dispose(). You can either directly call the Workbook.Dispose() method or you can use the Using statement to call this method automatically.
#include <iostream>
#include "Aspose.Cells.h"
using namespace Aspose::Cells;
int main()
{
Aspose::Cells::Startup();
// Create workbook object
Workbook wb1;
// Call Dispose method
wb1.Dispose();
// Call Dispose method via RAII (Resource Acquisition Is Initialization)
{
Workbook wb2;
// Any other code goes here
} // wb2 is automatically disposed when it goes out of scope
Aspose::Cells::Cleanup();
}
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.