ExcelConverter
Defines methods and properties for the ExcelConverter.
public class ExcelConverter
Public Class ExcelConverter
Inheritance: ObjectExcelConverter
Licensing Info
This class 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 ExcelConverter class.Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create new instance of ExcelConversionOptions.
Dim conversionOptions As ExcelConversionOptions = New ExcelConversionOptions(True)
' Create new instance of Converter by providing suitable parameters.
Dim excelConversion As ExcelConverter = New ExcelConverter("C:\MyDocument.xlsx",conversionOptions)
' Call Convert method to start conversion
excelConversion.Convert("C:\MyOutput.pdf")
End Sub
End Module
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create new instance of ExcelConversionOptions.
ExcelConversionOptions conversionOptions=new ExcelConversionOptions(true);
// Create new instance of Converter by providing suitable parameters.
ExcelConverter excel = new ExcelConverter(@"C:\MyDocument.xlsx",conversionOptions);
//Call Convert method to start conversion
excel.Convert(@"C:\MyOutput.pdf");
}
}
Constructors
ExcelConverter(Byte[], String) | Initializes the ExcelConverter ExcelConverter class. |
ExcelConverter(Byte[], String, ExcelConversionOptions) | Initializes the ExcelConverter ExcelConverter class. |
ExcelConverter(String) | Initializes the ExcelConverter ExcelConverter class. |
ExcelConverter(String, ExcelConversionOptions) | Initializes the ExcelConverter ExcelConverter class. |
Properties
ConversionOptions | Gets an instance of ExcelConversionOptions class. |
Methods
Convert() | Converts Excel file to PDF. |
Convert(Byte[]) | Converts Excel to PDF. |
Convert(String) | Converts Excel file to PDF. |
ConvertAsync() | Performs Asynchronous conversion. |
ConvertAsync(Byte[]) | Performs Asynchronous conversion. |
ConvertAsync(String) | Performs Asynchronous conversion. |
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) |
Events
ExcelConverter.Completed | Occurs when a document is successfully converted. |
ExcelConverter.DocumentParsing | Occurs when the Excel document is being analysed. At this stage various worksheet specific options can be set. |
ExcelConverter.ProgressChanged | Occurs when the status of a document conversion changes. |