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()
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 ExcelPageScaling constructor.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)
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:
- 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 ExcelPageScaling constructor.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)
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 ExcelPageScaling constructor with zoom as parameter.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)
Parameters
- nFitPageScalingWide
- Int32
- nFitPageScalingTall
- 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 ExcelPageScaling constructor with FitToWidth and FitToHeight as parameters.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
ExcelPageScalingceTe.DynamicPDF.Conversion