ExcelPageScaling

Contains all the properties and methods for Excel page scaling

public class ExcelPageScaling
Public Class ExcelPageScaling

Inheritance: ObjectExcelPageScaling

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
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

Properties

ActualSizeReturns ZoomExcelPageScaling to Microsoft Excel WorkSheets.
FitColoumnsInAPageReturns FitExcelPageScaling to Microsoft Excel WorkSheets.
FitExcelPageScalingReturns or sets FitExcelPageScaling to Microsoft Excel WorkSheets.
FitRowsInAPageReturns FitExcelPageScaling to Microsoft Excel WorkSheets.
FitSheetInAPageReturns FitExcelPageScaling to Microsoft Excel WorkSheets.
ZoomExcelPageScalingReturns or sets ZoomExcelPageScaling to Microsoft Excel WorkSheets.

Methods

Equals(Object)Determines whether the specified Object is equal to the current Object .
(Inherited from Object)
GetHashCode()Serves as a hash function for a particular type.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
ToString()Returns a String that represents the current Object .
(Inherited from Object)

See Also

ceTe.DynamicPDF.Conversion

In this topic