ZoomExcelPageScaling Constructors
Overloads
ZoomExcelPageScaling() | Initializes a new instance of the ZoomExcelPageScaling class. |
ZoomExcelPageScaling(Int32) | Initializes a new instance of the ZoomExcelPageScaling class. |
ZoomExcelPageScaling(ZoomExcelPageScaling) | Initializes a new instance of the ZoomExcelPageScaling class. |
ZoomExcelPageScaling()
Initializes a new instance of the ZoomExcelPageScaling class.
public ZoomExcelPageScaling()
Public Sub New ()
Licensing Info
This constructor is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
Examples
Example shows how to use ZoomExcelPageScaling 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 zoomExcelPageScaling As ZoomExcelPageScaling = New ZoomExcelPageScaling()
zoomExcelPageScaling.ZoomPercentage=50
Dim excelPageScaling As ExcelPageScaling = New ExcelPageScaling()
excelPageScaling.ZoomExcelPageScaling = zoomExcelPageScaling
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 zoomExcelPageScaling = new ZoomExcelPageScaling();
zoomExcelPageScaling.ZoomPercentage=50;
ExcelPageScaling excelPageScaling = new ExcelPageScaling();
excelPageScaling.ZoomExcelPageScaling = zoomExcelPageScaling;
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(Int32)
Initializes a new instance of the ZoomExcelPageScaling class.
public ZoomExcelPageScaling(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:
- An active DynamicPDF Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
Examples
Example shows how to use ZoomExcelPageScaling with ZoomPercentage 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 zoomExcelPageScaling As ZoomExcelPageScaling = New ZoomExcelPageScaling(50)
Dim excelPageScaling As ExcelPageScaling = New ExcelPageScaling()
excelPageScaling.ZoomExcelPageScaling = zoomExcelPageScaling
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 zoomExcelPageScaling = new ZoomExcelPageScaling(50);
ExcelPageScaling excelPageScaling = new ExcelPageScaling();
excelPageScaling.ZoomExcelPageScaling = zoomExcelPageScaling;
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(ZoomExcelPageScaling)
Initializes a new instance of the ZoomExcelPageScaling class.
public ZoomExcelPageScaling(ZoomExcelPageScaling zoomExcelPageScaling)
Public Sub New (zoomExcelPageScaling As ZoomExcelPageScaling)
Parameters
- zoomExcelPageScaling
- ZoomExcelPageScaling
Licensing Info
This constructor is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
Examples
Example shows how to use ZoomPercentage property 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 zoomExcelPageScaling As ZoomExcelPageScaling = New ZoomExcelPageScaling()
zoomExcelPageScaling.ZoomPercentage=50
Dim excelPageScaling As ExcelPageScaling = New ExcelPageScaling()
excelPageScaling.ZoomExcelPageScaling = zoomExcelPageScaling
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 zoomExcelPageScaling = new ZoomExcelPageScaling();
zoomExcelPageScaling.ZoomPercentage=50;
ExcelPageScaling excelPageScaling = new ExcelPageScaling();
excelPageScaling.ZoomExcelPageScaling = zoomExcelPageScaling;
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");
}
}