ZoomExcelPageScaling.ZoomPercentage Property

Returns or sets a percentage (between 10 and 400 percent) will scale the worksheet for printing. Applies only to worksheets.

public int ZoomPercentage { get; set; }
Public Property ZoomPercentage As Int32

Property Value

Int32

Licensing Info

This property is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:

Examples

This example shows how to provide Zoom for the worksheets.
Module Module1
    Sub Main()
        Dim xlOptions As New ExcelConversionOptions(ExcelPageSize.Folio, 18.0, 24.0)
        xlOptions.PageScaling = New ExcelPageScaling()
        xlOptions.PageScaling.ZoomExcelPageScaling = New ZoomExcelPageScaling(75)
        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)
        xlConverter.ConversionOptions = xlOptions;
        xlConverter.Convert("outputPdf.pdf");
    }
}

See Also

ZoomExcelPageScaling
ceTe.DynamicPDF.Conversion

In this topic