FitExcelPageScaling.PagesByWide Property
Returns or sets the number of pages wide the worksheet will be scaled to when it's printed. Applies only to worksheets.
public int PagesByWide { get; set; }
Public Property PagesByWide As Int32
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 PagesByWide 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.PagesByWide=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();
fitExcelPageScaling.PagesByWide=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");
}
}