Using IProgressCallback from Aspose.Slide for .NET when Saving a Presentation

I want to know the result and progress bar when i use “presentation.Save(dataDir + fileName, saveFormat,saveOptions);”
what should I do?

@valuemar

I suggest you to please try using following example on your end. The new IProgressCallback interface has been added to ISaveOptions interface and SaveOptions abstract class. IProgressCallback interface represents a callback object for saving progress updates in percentage.

public interface IProgressCallback
{
    /// <summary>
    /// Reports a progress update.
    /// </summary>
    /// <param name="progressValue">A value of the updated progress.</param>
    void Reporting(double progressValue);
}

Code snippets below show how to use IProgressCallback interface:

using (Presentation presentation = new Presentation(fileName))
{
    ISaveOptions saveOptions = new PdfOptions();
    saveOptions.ProgressCallback = new ExportProgressHandler();
    presentation.Save(pdfFileName, SaveFormat.Pdf, saveOptions);
}

class ExportProgressHandler : IProgressCallback
{
    public void Reporting(double progressValue)
    {
        // Use progress percentage value here
    }
}