ZoomExcelPageScaling.DefaultZoomPercentage Property
Returns or sets defaults percentage to Microsoft Excel WorkSheets.
public bool DefaultZoomPercentage { get; set; }
Public Property DefaultZoomPercentage As Boolean
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
This example shows how to provide the worksheets default zoomModule Module1
Sub Main()
Dim xlOptions As New ExcelConversionOptions(ExcelPageSize.Folio, 18.0, 24.0)
xlOptions.PageScaling = New ExcelPageScaling()
xlOptions.PageScaling.ZoomExcelPageScaling = New ZoomExcelPageScaling(75)
xlOptions.PageScaling.ZoomExcelPageScaling.DefaultZoomPercentage = True
Dim xlConverter As New ExcelConverter("C:\\Document.xls")
xlConverter.ConversionOptions = xlOptions
xlConverter.Convert("outputPDF.pdf")
End Sub
End Module
public class Program
{
static void Main()
{
ExcelConversionOptions xlOptions = new ExcelConversionOptions(false);
ExcelConversion xlConverter = new ExcelConverter("C:\\Document.xls");
xlOptions.PageScaling = new ExcelPageScaling();
xlOptions.PageScaling.ZoomExcelPageScaling = new ZoomExcelPageScaling(75);
xlOptions.PageScaling.ZoomExcelPageScaling.DefaultZoomPercentage = true;
xlConverter.ConversionOptions = xlOptions;
xlConverter.Convert("outputPdf.pdf");
}
}