Tutorial 5 – Canceling JPEG Exports

Tutorial 4 – JPEG Export Status

In the previous tutorial, we learned how to check the status of a JPEG Export.

In this tutorial, we’ll learn how to cancel all running JPEG Exports.

If you recall our handling of various states during the Export process, we had:

Let’s extend our handling of the ‘in progress’ state and cancel our Export at 50% complete:

AxAuga’s CancelExport method takes a string that represents the ID of the Export to cancel. Using the ID of “-1” will cancel all running Exports. Currently, the SDK only supports the capability of canceling all of the Exports as the Export IDs aren’t exposed.

Screenshots of the final program:

That’s it. Now you can cancel JPEG Exports.