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
- inputData: Byte[]
byte array of Excel file as input
- InputFileName: String
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
- inputData: Byte[]
byte array of Excel file as input
- InputFileName: String
Input Excel file name
- conversionOptions: ExcelConversionOptions
Options to initialize the ConversionOptions property
ExcelConverter(String)
Initializes the ExcelConverter ExcelConverter class.
public ExcelConverter(string inputFilePath)
Public Sub New (inputFilePath As String)
Parameters
- inputFilePath: String
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
- inputFilePath: String
Input Excel file name
- conversionOptions: ExcelConversionOptions
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
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
- pdfToAppendTo: Byte[]
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
- outputFilePath: String
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
- pdfToAppendTo: Byte[]
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
- outputFilePath: String
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
- obj: Object
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
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
ProgressChanged
Occurs when the status of a document conversion changes.
public event ProgressChanged ExcelConverter.ProgressChanged;
Public Event ExcelConverter.ProgressChanged As ProgressChanged