Cancel loading or paginating file on demand or after timeout

Hi GemBox Team,

I have a general question regarding the loading process of files into DocumentModel (or in the other components as MailMessage / PresentationDocument / ExcelFile) and paginating them: both operations can take a long time, is there a way to cancel those operations after a specific time or when a Cancellation Token is cancelled?

Kind regards,

Hi Sarah,

Yes, please take a look at the “Progress Reporting and Cancellation” example for GemBox.Document:

The same feature is also available in GemBox.Spreadsheet as well:

Unfortunately, this feature is currently not available in GemBox.Presentation and GemBox.Email.

Anyway, I hope this helps, let me know if you need anything else.


Hi Mario,

this helps! Thank you, I will have a closer look on it.