ExcelConversionOptions.ConvertSheets Property

Gets or sets ConvertSheets value for the ExcelWorkBook.

public ConvertSheets ConvertSheets { get; set; }
Public Property ConvertSheets As ConvertSheets

Property Value

ConvertSheets

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 ConvertSheets property.
Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

    ' create new instance of ExcelConversionOptions.
    Dim conversionOptions As ExcelConversionOptions = New ExcelConversionOptions(false)
    
    ' assign page orientation.
    conversionOptions.ConvertSheets = ConvertSheets.All
        
    ' 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 ExcelConversionOptions.
        ExcelConversionOptions conversionOptions=new ExcelConversionOptions(false);

       // assign page orientation.
        conversionOptions.ConvertSheets = ConvertSheets.All;

        //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

In this topic