ProgressChangedEventArgs

Provides data for the ProgressChanged event.

public class ProgressChangedEventArgs
Public Class ProgressChangedEventArgs

Inheritance: ObjectProgressChangedEventArgs

Licensing Info

This class is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:

Examples

This example shows how to use the ProgressChanged Event.
Imports ceTe.DynamicPDF.Conversion

Module Module1

    Sub Main()

        ' create an instance of ExcelConverter
        Dim excelConversion As ExcelConverter = New ExcelConverter("C:\MyDocument.xlsx")
        
        ' Events to know if conversion completed successfully or not
        AddHandler excelConversion.ProgressChanged, AddressOf Converter_ProgessChanged

        ' Call convert method to do conversion.
        excelConversion.Convert("C:\MyOutput.pdf")

    End Sub
    
    Sub Converter_ProgessChanged(ByVal sender As Object, ByVal e As ProgressChangedEventArgs)
        Console.WriteLine(e.Status)
    End Sub
    
End Module
using System;
using ceTe.DynamicPDF.Conversion;

MyClass
{
    static void Main()
    {
        // Create new instance of Converter by providing suitable parameters.
        ExcelConverter excel = new ExcelConverter(@"C:\MyDocument.Xlsx");
        
        //Events to know if conversion completed successfully or not
        excel.ProgressChanged += new ProgressChanged(Conversion_ProgressChanged);
        
        //Call Convert method to start conversion
        excel.Convert(@"C:\MyOutput.pdf");
    }
    public static void Conversion_ProgressChanged(object sender, ProgressChangedEventArgs e)
    {
            Console.WriteLine(e.Status);
    }
}

Properties

CancelConversionReturns and set the value that triggers to cancel the conversion.
StatusGets the status of current conversion progress. ConversionStatus class for example.

Methods

Equals(Object)Determines whether the specified Object is equal to the current Object .
(Inherited from Object)
GetHashCode()Serves as a hash function for a particular type.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
ToString()Returns a String that represents the current Object .
(Inherited from Object)

See Also

ceTe.DynamicPDF.Conversion

In this topic