ExcelPageScaling.FitExcelPageScaling Property
Returns or sets FitExcelPageScaling to Microsoft Excel WorkSheets.
public FitExcelPageScaling FitExcelPageScaling { get; set; }
Public Property FitExcelPageScaling As FitExcelPageScaling
Property Value
Licensing Info
This property 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 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");
}
}