cete.dynamicpdf.conversion.progresschangedeventargs
ProgressChangedEventArgs
- Namespace: ceTe.DynamicPDF.Conversion
- Assemblies: DynamicPDF.Converter.dll
Provides data for the ProgressChanged event.
public class ProgressChangedEventArgs
Public Class ProgressChangedEventArgs
Inheritance: Object → ProgressChangedEventArgs
Licensing Info
This class is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
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
CancelConversion
Returns and set the value that triggers to cancel the conversion.
public bool CancelConversion { get; set; }
Public Property CancelConversion As Boolean
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
Examples
This example shows how to use the CancelConvesion Property.
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)
e.CancelConversion=False
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)
{
e.CancelConversion=false;
}
}
Status
Gets the status of current conversion progress. ConversionStatus class for example.
public ConversionStatus Status { get; }
Public ReadOnly Property Status As ConversionStatus
Property Value
Licensing Info
This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
Methods
Equals(Object)
Determines whether the specified Object is equal to the current Object . (Inherited from Object)
public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean
Parameters
- obj: Object
The Object to compare with the current Object .
Returns
true if the specified Object is equal to the current Object ; otherwise, false.
Licensing Info
This method is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
GetHashCode()
Serves as a hash function for a particular type. (Inherited from Object)
public int GetHashCode()
Function GetHashCode() As Integer
Returns
A hash code for the current Object .
Licensing Info
This method is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
GetType()
Gets the Type of the current instance. (Inherited from Object)
public Type GetType()
Function GetType() As Type
Returns
The Type instance that represents the exact runtime type of the current instance.
Licensing Info
This method is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
ToString()
Returns a String that represents the current Object . (Inherited from Object)
public string ToString()
Function ToString() As String
Returns
A String that represents the current Object .
Licensing Info
This method is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF https://www.dynamicpdf.com/ultimate-subscription Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.