Track Conversion Progress of Excel to TIFF

Possible Usage Scenarios

Sometimes converting large excel files can take some time. During this time, you might want to show the document conversion progress instead of just a loading screen to enhance the usability of your application. Aspose.Cells supports tracking document conversion process by providing the IPageSavingCallback interface. The IPageSavingCallback interface provides PageStartSaving and PageEndSaving methods that you can implement in your custom class. You may also control which pages are rendered as demonstrated in the TestTiffPageSavingCallback custom class.

Track Conversion Progress of Excel to TIFF

The following code sample loads the source excel file and prints its conversion progress in the console by using the TestTiffPageSavingCallback custom class that implements the IPageSavingCallback interface. The generated output file is attached for your reference.

Output File

Sample Code

The following is the code for the TestTiffPageSavingCallback custom class.

Console Output

Start saving page index 0 of pages 10
End saving page index 0 of pages 10
Start saving page index 1 of pages 10
End saving page index 1 of pages 10
Start saving page index 2 of pages 10
End saving page index 2 of pages 10
Start saving page index 3 of pages 10
End saving page index 3 of pages 10
Start saving page index 4 of pages 10
End saving page index 4 of pages 10
Start saving page index 5 of pages 10
End saving page index 5 of pages 10
Start saving page index 6 of pages 10
End saving page index 6 of pages 10
Start saving page index 7 of pages 10
End saving page index 7 of pages 10
Start saving page index 8 of pages 10
End saving page index 8 of pages 10