ExcelPageScaling Constructors

Overloads

ExcelPageScaling()creates a new instance of ExcelPageScaling class
ExcelPageScaling(ExcelPageScaling)creates a new instance of ExcelPageScaling class
ExcelPageScaling(Int32)creates a new instance of ExcelPageScaling class
ExcelPageScaling(Int32, Int32)creates a new instance of ExcelPageScaling class

ExcelPageScaling()

creates a new instance of ExcelPageScaling class

public ExcelPageScaling()
Public Sub New ()

Licensing Info

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

Examples

Example shows how to ExcelPageScaling constructor.
Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

     ' Create new instance of conversionOptions.
     Dim conversionOptions As ExcelConversionOptions =  New ExcelConversionOptions(ExcelPageSize.A4,10,10)
     Dim fitExcelPageScaling As fitExcelPageScaling = New FitExcelPageScaling(1,1)
     Dim excelPageScaling As ExcelPageScaling = New ExcelPageScaling()
     excelPageScaling.FitExcelPageScaling = fitExcelPageScaling
     conversionOptions.PageScaling = excelPageScaling
    ' 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 conversionOptions.
        ExcelConversionOptions conversionOptions = new ExcelConversionOptions(ExcelPageSize.A4,10,10);
        FitExcelPageScaling fitExcelPageScaling = new FitExcelPageScaling(1,1);
        ExcelPageScaling excelPageScaling = new ExcelPageScaling();
        excelPageScaling.FitExcelPageScaling = fitExcelPageScaling;
        conversionOptions.PageScaling = excelPageScaling;
        
        // Create new instance of Converter by providing suitable parameters.
        ExcelConverter excelConverter = new ExcelConverter(@"C:\MyDocument.xlsx",conversionOptions);
       
        //Call Convert method to start conversion
        excelConverter.Convert(@"C:\MyOutput.pdf");
    }   
}

ExcelPageScaling(ExcelPageScaling)

creates a new instance of ExcelPageScaling class

public ExcelPageScaling(ExcelPageScaling xlPageScaling)
Public Sub New (xlPageScaling As ExcelPageScaling)

Parameters

xlPageScaling
ExcelPageScaling

instance of ExcelPageScaling class

Licensing Info

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

Examples

Example shows how to ExcelPageScaling constructor.
Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

     ' Create new instance of conversionOptions.
     Dim conversionOptions As ExcelConversionOptions =  New ExcelConversionOptions(ExcelPageSize.A4,10,10)
     Dim fitExcelPageScaling As fitExcelPageScaling = New FitExcelPageScaling(1,1)
     Dim excelPageScaling As ExcelPageScaling = New ExcelPageScaling()
     excelPageScaling.FitExcelPageScaling = fitExcelPageScaling
     Dim PageScaling As ExcelPageScaling = New ExcelPageScaling(excelPageScaling)
     conversionOptions.PageScaling = PageScaling
    ' 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 conversionOptions.
        ExcelConversionOptions conversionOptions = new ExcelConversionOptions(ExcelPageSize.A4,10,10);
        FitExcelPageScaling fitExcelPageScaling = new FitExcelPageScaling(1,1);
        ExcelPageScaling excelPageScaling = new ExcelPageScaling();
        excelPageScaling.FitExcelPageScaling = fitExcelPageScaling;
        ExcelPageScaling PageScaling = new ExcelPageScaling(excelPageScaling);
        conversionOptions.PageScaling = PageScaling;
        
        // Create new instance of Converter by providing suitable parameters.
        ExcelConverter excelConverter = new ExcelConverter(@"C:\MyDocument.xlsx",conversionOptions);
       
        //Call Convert method to start conversion
        excelConverter.Convert(@"C:\MyOutput.pdf");
    }   
}

ExcelPageScaling(Int32)

creates a new instance of ExcelPageScaling class

public ExcelPageScaling(int ZoomPercentage)
Public Sub New (ZoomPercentage As Integer)

Parameters

ZoomPercentage
Int32

Licensing Info

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

Examples

Example shows how to ExcelPageScaling constructor with zoom as parameter.
Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

     ' Create new instance of conversionOptions.
     Dim conversionOptions As ExcelConversionOptions =  New ExcelConversionOptions(ExcelPageSize.A4,10,10)
     Dim excelPageScaling As ExcelPageScaling = New ExcelPageScaling(50)
     conversionOptions.PageScaling = excelPageScaling
    ' 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 conversionOptions.
        ExcelConversionOptions conversionOptions = new ExcelConversionOptions(ExcelPageSize.A4,10,10);
        ExcelPageScaling excelPageScaling = new ExcelPageScaling(50);
        conversionOptions.PageScaling = excelPageScaling;
        
        // Create new instance of Converter by providing suitable parameters.
        ExcelConverter excelConverter = new ExcelConverter(@"C:\MyDocument.xlsx",conversionOptions);
       
        //Call Convert method to start conversion
        excelConverter.Convert(@"C:\MyOutput.pdf");
    }   
}

ExcelPageScaling(Int32, Int32)

creates a new instance of ExcelPageScaling class

public ExcelPageScaling(int nFitPageScalingWide, int nFitPageScalingTall)
Public Sub New (nFitPageScalingWide As Integer, nFitPageScalingTall As Integer)

Parameters

nFitPageScalingWide
Int32

nFitPageScalingTall
Int32

Licensing Info

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

Examples

Example shows how to ExcelPageScaling constructor with FitToWidth and FitToHeight as parameters.
Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

     ' Create new instance of conversionOptions.
     Dim conversionOptions As ExcelConversionOptions =  New ExcelConversionOptions(ExcelPageSize.A4,10,10)
     Dim excelPageScaling As ExcelPageScaling = New ExcelPageScaling(1,1)
     conversionOptions.PageScaling = excelPageScaling
    ' 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 conversionOptions.
        ExcelConversionOptions conversionOptions = new ExcelConversionOptions(ExcelPageSize.A4,10,10);
        ExcelPageScaling excelPageScaling = new ExcelPageScaling(1,1);
        conversionOptions.PageScaling = excelPageScaling;
        
        // Create new instance of Converter by providing suitable parameters.
        ExcelConverter excelConverter = new ExcelConverter(@"C:\MyDocument.xlsx",conversionOptions);
       
        //Call Convert method to start conversion
        excelConverter.Convert(@"C:\MyOutput.pdf");
    }   
}

See Also

ExcelPageScaling
ceTe.DynamicPDF.Conversion

In this topic