Skip to main content

ExcelConverter

Version: 2.0

cete.dynamicpdf.conversion.excelconverter

ExcelConverter​

  • Namespace: ceTe.DynamicPDF.Conversion
  • Assemblies: DynamicPDF.Converter.NETFramework40.dll, DynamicPDF.Converter.NETStandard20.dll

Defines methods and properties for the ExcelConverter.

public class ExcelConverter
Public Class ExcelConverter

Inheritance: Object → ExcelConverter

Constructors​

ExcelConverter(Byte[], String)​

Initializes the ExcelConverter ExcelConverter class.

public ExcelConverter(Byte[] inputData, string InputFileName)
Public Sub New (inputData As Byte(), InputFileName As String)

Parameters​

byte array of Excel file as input

Input Excel file name

ExcelConverter(Byte[], String, ExcelConversionOptions)​

Initializes the ExcelConverter ExcelConverter class.

public ExcelConverter(Byte[] inputData, string InputFileName, ExcelConversionOptions conversionOptions)
Public Sub New (inputData As Byte(), InputFileName As String, conversionOptions As ExcelConversionOptions)

Parameters​

byte array of Excel file as input

Input Excel file name

Options to initialize the ConversionOptions property

ExcelConverter(String)​

Initializes the ExcelConverter ExcelConverter class.

public ExcelConverter(string inputFilePath)
Public Sub New (inputFilePath As String)

Parameters​

File path of input Excel file.

ExcelConverter(String, ExcelConversionOptions)​

Initializes the ExcelConverter ExcelConverter class.

public ExcelConverter(string inputFilePath, ExcelConversionOptions conversionOptions)
Public Sub New (inputFilePath As String, conversionOptions As ExcelConversionOptions)

Parameters​

Input Excel file name

Options to initialize the ConversionOptions property

Properties​

ConversionOptions​

Gets an instance of ExcelConversionOptions class.

public ExcelConversionOptions ConversionOptions { get; }
Public Property ConversionOptions As ExcelConversionOptions

Property Value​

ExcelConversionOptions

Methods​

AbortConversion()​

Aborts the Asynchronous conversion.

public void AbortConversion()
Sub AbortConversion()

Convert()​

Converts Excel file to PDF.

public Byte[] Convert()
Function Convert() As Byte()

Returns​

Outputs converted PDF in a byte array format

Convert(Byte[])​

Converts Excel to PDF.

public Byte[] Convert(Byte[] pdfToAppendTo)
Function Convert(pdfToAppendTo As Byte()) As Byte()

Parameters​

Contents of PDF in byte array format, to which the current conversion needs to be appended to.

Returns​

Convert(String)​

Converts Excel file to PDF.

public void Convert(string outputFilePath)
Sub Convert(outputFilePath As String)

Parameters​

File path for output PDF file where it needs to be saved

ConvertAsync()​

Performs Asynchronous conversion.

public void ConvertAsync()
Sub ConvertAsync()

ConvertAsync(Byte[])​

Performs Asynchronous conversion.

public void ConvertAsync(Byte[] pdfToAppendTo)
Sub ConvertAsync(pdfToAppendTo As Byte())

Parameters​

Contents of PDF in byte array format, to which the current conversion needs to be appended to.

ConvertAsync(String)​

Performs Asynchronous conversion

public void ConvertAsync(string outputFilePath)
Sub ConvertAsync(outputFilePath As String)

Parameters​

File path to save the output PDF.

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​

The Object to compare with the current Object .

Returns​

true if the specified Object is equal to the current Object ; otherwise, false.

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 .

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.

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 .

Events​

Completed​

Occurs when a document is successfully converted.

public event ConversionCompleted ExcelConverter.Completed;
Public Event ExcelConverter.Completed As ConversionCompleted

Event Handler​

ConversionCompleted

DocumentParsing​

Occurs when the Excel document is being analysed. At this stage various worksheet specific options can be set.

public event ExcelDocumentParsing ExcelConverter.DocumentParsing;
Public Event ExcelConverter.DocumentParsing As ExcelDocumentParsing

Event Handler​

ExcelDocumentParsing

ProgressChanged​

Occurs when the status of a document conversion changes.

public event ProgressChanged ExcelConverter.ProgressChanged;
Public Event ExcelConverter.ProgressChanged As ProgressChanged

Event Handler​

ProgressChanged

See Also​

ceTe.DynamicPDF.Conversion