ExcelConverter Constructors

Overloads

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.

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

Licensing Info

This constructor is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:

Examples

This example shows how to use ExcelConverter class with input byte array and inputFile path as parameters.
Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

    'Read all file data to a byte array.
    Dim inputData As Byte() = File.ReadAllBytes("C:\MyDocument.xlsx")
    
   ' Create new instance of Converter by providing suitable parameters.
    Dim excelConversion As ExcelConverter = New ExcelConverter(inputData,"MyDocument.xlsx")

    ' Call Convert method to start conversion
    excelConversion.Convert("C:\MyOutput.pdf")

End Sub
 
End Module
using ceTe.DynamicPDF.Conversion;

class MyClass
{
    static void Main()
    {
        // Read all file data to a byte array.
        byte [] inputData=File.ReadAllBytes("C:\MyDocument.xlsx");

        // Create new instance of Converter by providing suitable parameters.
        ExcelConverter excel = new ExcelConverter(inputData,"MyDocument.xlsx");
        
        //Call Convert method to start conversion
        excel.Convert(@"C:\MyOutput.pdf");
    }
}

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

Licensing Info

This constructor is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:

Examples

This example shows how to use ExcelConverter class with input byte array and inputFile path as parameters.
Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

    ' create new instance of ExcelConversionOptions.
    Dim conversionOptions As ExcelConversionOptions = New ExcelConversionOptions(True)
    
   'Read all file data to a byte array.
    Dim inputData As Byte() = File.ReadAllBytes("C:\MyDocument.xlsx")
    
   ' Create new instance of Converter by providing suitable parameters.
    Dim excelConversion As ExcelConverter = New ExcelConverter(inputData,"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 ExcelConversionOptions.
        byte [] inputData=File.ReadAllBytes("C:\MyDocument.xlsx");

        // Create new instance of Converter by providing suitable parameters.
        ExcelConverter excel = new ExcelConverter(inoutDate,"MyDocument.xlsx",conversionOptions);
        
        //Call Convert method to start conversion
        excel.Convert(@"C:\MyOutput.pdf");
    }
}

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.

Licensing Info

This constructor is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:

Examples

This example shows how to use ExcelConverter class with inputFilePath as parameter.
Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()
    
   ' Create new instance of Converter by providing suitable parameters.
    Dim excelConversion As ExcelConverter = New ExcelConverter("C:\MyDocument.xlsx")

    ' 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 Converter by providing suitable parameters.
        ExcelConverter excel = new ExcelConverter(@"C:\MyDocument.xlsx");
        
        //Call Convert method to start conversion
        excel.Convert(@"C:\MyOutput.pdf");
    }
}

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

Licensing Info

This constructor is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:

Examples

This example shows how to use ExcelConverter class with inputFile path and conversionOptions as parameter.
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");
    }
}

See Also

ExcelConverter
ceTe.DynamicPDF.Conversion

In this topic