ExcelConversionOptions.Orientation Property

Gets or sets orientation for the page.

public Nullable<PageOrientation> Orientation { get; set; }

Property Value

Nullable<PageOrientation>

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 use orientation property.
using ceTe.DynamicPDF.Conversion;

class MyClass
{
    static void Main()
    {
        // create new instance of ExcelConversionOptions.
        ExcelConversionOptions conversionOptions=new ExcelConversionOptions(false);

       // assign page orientation.
        conversionOptions.Orientation = PageOrientation.Landscape

        //create new instance of Converter by providing suitable parameters.
        ExcelConverter excel = new ExcelConverter(@"C:\MyDocument.xlsx",conversionOptions);
        
        //Call Convert method to start conversion
        excel.Convert(@"C:\MyOutput.pdf");
    }
}

See Also

ExcelConversionOptions
ceTe.DynamicPDF.Conversion