Show progress bar during load of file

We have files > 100 MB and it takes very Long to load them. Is there a way to Display a Progress bar during load?

Thanks
Norman

@norman.neubert

Thanks for using Aspose APIs.

Progress bar feature is not present in Aspose.Cells. However, Aspose.Cells provides InterruptMonitor which you can use to interrupt the loading of workbook if it is taking too much time. You will need two threads for it. One thread will load the workbook and other thread will monitor and interrupt the loading of workbook

C#

InterruptMonitor im = new InterruptMonitor();

//This function is in main thread
void LoadWorkbook()
{
	LoadOptions opts = new LoadOptions();
	opts.InterruptMonitor = im;

	Workbook wb = new Workbook("Large.xlsx", opts);
}

//This function is in another thread.
void WaitForWhileAndThenInterrupt()
{
	//Wait for a while and then interrupt
	im.Interrupt();            
}