Skip to main content

ExcelPageScaling

Version: 3.0

cete.dynamicpdf.conversion.excelpagescaling

ExcelPageScaling​

Contains all the properties and methods for Excel page scaling

public class ExcelPageScaling
Public Class ExcelPageScaling

Inheritance: Object → ExcelPageScaling

Licensing Info​

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

Examples​

Example shows how to use ExcelPageScaling class.

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

Constructors​

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​

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​

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

Properties​

ActualSize​

Returns ZoomExcelPageScaling to Microsoft Excel WorkSheets.

public static ZoomExcelPageScaling ActualSize { get; }
Public Shared Property ActualSize As ZoomExcelPageScaling

Property Value​

ZoomExcelPageScaling

Licensing Info​

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

Examples​

Example shows how to use ActualSize property.

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()
excelPageScaling.ZoomExcelPageScaling = ExcelPageScaling.ActualSize;
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();
excelPageScaling.ZoomExcelPageScaling = ExcelPageScaling.ActualSize;
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");
}
}

FitAllColumnsOnAPage​

Returns FitExcelPageScaling to Microsoft Excel WorkSheets.

public static FitExcelPageScaling FitAllColumnsOnAPage { get; }
Public Shared Property FitAllColumnsOnAPage As FitExcelPageScaling

Property Value​

FitExcelPageScaling

Licensing Info​

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

Examples​

Example shows how to use FitAllColumnsOnAPage.

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()
excelPageScaling.FitExcelPageScaling = ExcelPageScaling.FitAllColumnsOnAPage;
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();
excelPageScaling.FitExcelPageScaling = ExcelPageScaling.FitAllColumnsOnAPage;
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");
}
}

FitAllRowsOnAPage​

Returns FitExcelPageScaling to Microsoft Excel WorkSheets.

public static FitExcelPageScaling FitAllRowsOnAPage { get; }
Public Shared Property FitAllRowsOnAPage As FitExcelPageScaling

Property Value​

FitExcelPageScaling

Licensing Info​

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

Examples​

Example shows how to use FitAllRowsOnAPage.

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()
excelPageScaling.FitExcelPageScaling = ExcelPageScaling.FitAllRowsOnAPage;
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();
excelPageScaling.FitExcelPageScaling = ExcelPageScaling.FitAllRowsOnAPage;
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");
}
}

FitExcelPageScaling​

Returns or sets FitExcelPageScaling to Microsoft Excel WorkSheets.

public FitExcelPageScaling FitExcelPageScaling { get; set; }
Public Property FitExcelPageScaling As FitExcelPageScaling

Property Value​

FitExcelPageScaling

Licensing Info​

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

Examples​

Example shows how to use FitExcelPageScaling property.

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()
fitExcelPageScaling.PagesByTall=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();
fitExcelPageScaling.PagesByTall=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");
}
}

FitSheetInAPage​

Returns FitExcelPageScaling to Microsoft Excel WorkSheets.

public static FitExcelPageScaling FitSheetInAPage { get; }
Public Shared Property FitSheetInAPage As FitExcelPageScaling

Property Value​

FitExcelPageScaling

Licensing Info​

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

Examples​

Example shows how to use FitSheetInAPage property.

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()
excelPageScaling.FitExcelPageScaling = ExcelPageScaling.FitSheetInAPage;
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();
excelPageScaling.FitExcelPageScaling = ExcelPageScaling.FitSheetInAPage;
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");
}
}

ZoomExcelPageScaling​

Returns or sets ZoomExcelPageScaling to Microsoft Excel WorkSheets.

public ZoomExcelPageScaling ZoomExcelPageScaling { get; set; }
Public Property ZoomExcelPageScaling As ZoomExcelPageScaling

Property Value​

ZoomExcelPageScaling

Licensing Info​

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

Examples​

Example shows how to apply set ZoomExcelPageScaling.

Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

' Create new instance of conversionOptions.
Dim conversionOptions As ExcelConversionOptions = New ExcelConversionOptions(ExcelPageSize.A4,10,10)
Dim zoomxlPageScaling As ZoomExcelPageScaling = New ZoomExcelPageScaling()
zoomxlPageScaling.ZoomPercentage = 100
Dim excelPageScaling As ExcelPageScaling = New ExcelPageScaling()
excelPageScaling.ZoomExcelPageScaling = zoomxlPageScaling
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);
ZoomExcelPageScaling zoomxlPageScaling = new ZoomExcelPageScaling();
zoomxlPageScaling.ZoomPercentage = 100;
ExcelPageScaling excelPageScaling = new ExcelPageScaling();
excelPageScaling.ZoomExcelPageScaling = zoomxlPageScaling;
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");
}
}

Methods​

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.

Licensing Info​

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

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 .

Licensing Info​

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

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.

Licensing Info​

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

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 .

Licensing Info​

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

See Also​

ceTe.DynamicPDF.Conversion