ExcelPageScaling.FitColoumnsInAPage Property
Returns FitExcelPageScaling to Microsoft Excel WorkSheets.
public static FitExcelPageScaling FitColoumnsInAPage { get; }
Public Shared Property FitColoumnsInAPage 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 FitColumnsInAPage.Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' Create new instance of conversionOptions.
Dim conversionOptions As ExcelConversionOptions = New ExcelConversionOptions(ExcelPageSize.A4,10,10)
Dim excelPageScaling As ExcelPageScaling = New ExcelPageScaling()
excelPageScaling.FitExcelPageScaling = ExcelPageScaling.FitColoumnsInAPage;
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);
ExcelPageScaling excelPageScaling = new ExcelPageScaling();
excelPageScaling.FitExcelPageScaling = ExcelPageScaling.FitColoumnsInAPage;
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");
}
}