ExcelConversionOptions Constructors

Overloads

ExcelConversionOptions([Optional] Boolean)Defines properies and methods that are neeeded for Excel conversions.
ExcelConversionOptions(ExcelPageSize, Double)Initializes a new instance of the ExcelConversionOptions class.
ExcelConversionOptions(ExcelPageSize, Double, [Optional] Boolean)Initializes a new instance of the ExcelConversionOptions class.
ExcelConversionOptions(ExcelPageSize, Double, Double)Initializes a new instance of the ExcelConversionOptions class.
ExcelConversionOptions(ExcelPageSize, PageOrientation, Double)Initializes a new instance of the ExcelConversionOptions class.
ExcelConversionOptions(ExcelPageSize, PageOrientation, Double, Double)Initializes a new instance of the ExcelConversionOptions class.
ExcelConversionOptions(ExcelPageSize, PageOrientation, Double, Double, [Optional] Boolean)Initializes a new instance of the ExcelConversionOptions class.

ExcelConversionOptions([Optional] Boolean)

Defines properies and methods that are neeeded for Excel conversions.

public ExcelConversionOptions([bool appendToPdf = False])
Public Sub New (Optional appendToPdf As Boolean = False)

Parameters

appendToPdf
Boolean

Whether the pdf should be appended to the existing pdf.

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 ExcelConversionOptions constructor.
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");
    }
}

ExcelConversionOptions(ExcelPageSize, Double)

Initializes a new instance of the ExcelConversionOptions class.

public ExcelConversionOptions(ExcelPageSize pageSize, double margins)
Public Sub New (pageSize As ExcelPageSize, margins As Double)

Parameters

pageSize
ExcelPageSize

Excel page size in points

margins
Double

Margins of the page in points

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 ExcelConversionOptions class with ExcelPageSize and margin.
Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

    ' create new instance of ExcelConversionOptions.
    Dim conversionOptions As ExcelConversionOptions = New ExcelConversionOptions(ExcelPageSize.A4,10)
    
   ' 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(ExcelPageSize.A4,10);

        // 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");
    }
}

ExcelConversionOptions(ExcelPageSize, Double, [Optional] Boolean)

Initializes a new instance of the ExcelConversionOptions class.

public ExcelConversionOptions(ExcelPageSize pageSize, double margins, [bool appendToPdf = False])
Public Sub New (pageSize As ExcelPageSize, margins As Double, Optional appendToPdf As Boolean = False)

Parameters

pageSize
ExcelPageSize

Excel page size in points.

margins
Double

Margins of the page in points.

appendToPdf
Boolean

Specify if append option to be enabled

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 ExcelConversionOptions constructor with ExcelPageSize, margin and appendToPdf as parameter.
Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

    ' create new instance of ExcelConversionOptions.
    Dim conversionOptions As ExcelConversionOptions = New ExcelConversionOptions(ExcelPageSize.A4,10,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(ExcelPageSize.A4,10,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");
    }
}

ExcelConversionOptions(ExcelPageSize, Double, Double)

Initializes a new instance of the ExcelConversionOptions class.

public ExcelConversionOptions(ExcelPageSize pageSize, double leftAndRightMargin, double topAndBottomMargin)
Public Sub New (pageSize As ExcelPageSize, leftAndRightMargin As Double, topAndBottomMargin As Double)

Parameters

pageSize
ExcelPageSize

Excel page size in points.

leftAndRightMargin
Double

Left and right margins of the page in points.

topAndBottomMargin
Double

Top and bottom margins of the page in points.

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 ExcelConversionOptions constructor with ExcelPageSize, LeftandRightMargin and TopandBottomMargin as parameter.
Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

    ' create new instance of ExcelConversionOptions.
    Dim conversionOptions As ExcelConversionOptions = New ExcelConversionOptions(ExcelPageSize.A4,10,10)
    
   ' 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(ExcelPageSize.A4,10,10);

        // 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");
    }
}

ExcelConversionOptions(ExcelPageSize, PageOrientation, Double)

Initializes a new instance of the ExcelConversionOptions class.

public ExcelConversionOptions(ExcelPageSize pageSize, PageOrientation orientation, double margins)
Public Sub New (pageSize As ExcelPageSize, orientation As PageOrientation, margins As Double)

Parameters

pageSize
ExcelPageSize

Excel page size in points.

orientation
PageOrientation

Orientation of the page.

margins
Double

Margins of the page in points.

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 ExcelConversionOptions constructor with ExcelPageSize, PageOrientation and margin as parameter.
Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

    ' create new instance of ExcelConversionOptions.
    Dim conversionOptions As ExcelConversionOptions = New ExcelConversionOptions(ExcelPageSize.A4,PageOrientation.Portrait,10)
    
   ' 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(ExcelPageSize.A4,PageOrientation.Portrait,10);

        // 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");
    }
}

ExcelConversionOptions(ExcelPageSize, PageOrientation, Double, Double)

Initializes a new instance of the ExcelConversionOptions class.

public ExcelConversionOptions(ExcelPageSize pageSize, PageOrientation orientation, double leftAndRightMargin, double topAndBottomMargin)
Public Sub New (pageSize As ExcelPageSize, orientation As PageOrientation, leftAndRightMargin As Double, topAndBottomMargin As Double)

Parameters

pageSize
ExcelPageSize

Excel page size in points.

orientation
PageOrientation

Orientation of the page.

leftAndRightMargin
Double

Left and right margins of the page in points.

topAndBottomMargin
Double

Top and bottom margins of the page in points.

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 ExcelConversionOptions constructor with ExcelPageSize, PageOrientation , LeftAndRightmargin and TopAndBottomMargin as parameter.
Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

    ' create new instance of ExcelConversionOptions.
    Dim conversionOptions As ExcelConversionOptions = New ExcelConversionOptions(ExcelPageSize.A4,PageOrientation.Portrait,10,10)
    
   ' 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(ExcelPageSize.A4,PageOrientation.Portrait,10,10);

        // 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");
    }
}

ExcelConversionOptions(ExcelPageSize, PageOrientation, Double, Double, [Optional] Boolean)

Initializes a new instance of the ExcelConversionOptions class.

public ExcelConversionOptions(ExcelPageSize pageSize, PageOrientation orientation, double leftAndRightMargin, double topAndBottomMargin, [bool appendToPdf = False])
Public Sub New (pageSize As ExcelPageSize, orientation As PageOrientation, leftAndRightMargin As Double, topAndBottomMargin As Double, Optional appendToPdf As Boolean = False)

Parameters

pageSize
ExcelPageSize

Excel page size in points.

orientation
PageOrientation

Orientation of the page.

leftAndRightMargin
Double

Left and right margins of the page in points.

topAndBottomMargin
Double

Top and bottom margins of the page in points.

appendToPdf
Boolean

Specify if append option to be enabled

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 ExcelConversionOptions constructor with ExcelPageSize, PageOrientation , LeftAndRightmargin ,TopAndBottomMargin and appendToPdf as parameter.
Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

    ' create new instance of ExcelConversionOptions.
    Dim conversionOptions As ExcelConversionOptions = New ExcelConversionOptions(ExcelPageSize.A4,PageOrientation.Portrait,10,10,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(ExcelPageSize.A4,PageOrientation.Portrait,10,10,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

ExcelConversionOptions
ceTe.DynamicPDF.Conversion

In this topic