ConversionStatus Enum
Enumerates the ConversionStatus.
public enum ConversionStatus
Public Enum ConversionStatus
Inheritance: ObjectValueTypeEnumConversionStatus
Fields
ConversionStatus.Cancelled | 2 | After terminating the conversion process on user request.. |
ConversionStatus.Failed | 4 | After getting the error or exception during the conversion. |
ConversionStatus.Initalized | 1 | After opening the input document in the required program. |
ConversionStatus.Queued | 0 | After adding to the conversion queue. |
ConversionStatus.Succeded | 3 | After the conversion completed with valid output (Pdf file) |
ConversionStatus.TimeOut | 5 | After timout |
Licensing Info
This enum is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF 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 Conversion status.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);
}
}