ExcelWorksheetConversionOptions Constructors

Overloads

ExcelWorksheetConversionOptions(Boolean)Initializes a new instance of the ExcelWorksheetConversionOptions class
ExcelWorksheetConversionOptions(ExcelPageSize, Double)Initializes a new instance of the ExcelWorksheetConversionOptions class
ExcelWorksheetConversionOptions(ExcelPageSize, Double, Double)Initializes a new instance of the ExcelWorksheetConversionOptions class.
ExcelWorksheetConversionOptions(ExcelPageSize, PageOrientation?, Double)Initializes a new instance of the ExcelWorksheetConversionOptions class.
ExcelWorksheetConversionOptions(ExcelPageSize, PageOrientation?, Double, Double)Initializes a new instance of the ExcelWorksheetConversionOptions class.
ExcelWorksheetConversionOptions(ExcelWorksheetConversionOptions)Initializes a new instance of the ExcelWorksheetConversionOptions class

ExcelWorksheetConversionOptions(Boolean)

Initializes a new instance of the ExcelWorksheetConversionOptions class

public ExcelWorksheetConversionOptions(bool defaultToFile)

Parameters

defaultToFile
Boolean

Licensing Info

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

Examples

Example shows how to ExcelWorksheetConversionOptions constructor with defaultToFile as parameter.
using ceTe.DynamicPDF.Conversion;

class MyClass
{
    static void Main()
    {
        // Create new instance of Converter by providing suitable parameters.
        ExcelConverter excelConverter = new ExcelConverter(@"C:\MyDocument.xlsx");
       
        excelConverter.DocumentParsing += new ExcelDocumentParsing(xlConverter_DocumentParsing);
        
        //Call Convert method to start conversion
        excelConverter.Convert(@"C:\MyOutput.pdf");
    }
    static void xlConverter_DocumentParsing(object sender, ExcelDocumentParsingEventArgs e)
    {
        foreach (ExcelWorksheet excelWorksheet in e.Worksheets)
        {
            ExcelWorksheetConversionOptions excelWSOptions = new ExcelWorksheetConversionOptions(true);
            excelWorksheet.ConversionOptions=excelWSOptions;
        }
     }
}

ExcelWorksheetConversionOptions(ExcelPageSize, Double)

Initializes a new instance of the ExcelWorksheetConversionOptions class

public ExcelWorksheetConversionOptions(ExcelPageSize pageSize, double margins)

Parameters

pageSize
ExcelPageSize

Size of the page

margins
Double

margins given in points

Licensing Info

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

Examples

Example shows how to ExcelWorksheetConversionOptions constructor with ExcelPageSize and margin as parameter.
using ceTe.DynamicPDF.Conversion;

class MyClass
{
    static void Main()
    {
        // Create new instance of Converter by providing suitable parameters.
        ExcelConverter excelConverter = new ExcelConverter(@"C:\MyDocument.xlsx");
       
        excelConverter.DocumentParsing += new ExcelDocumentParsing(xlConverter_DocumentParsing);
        
        //Call Convert method to start conversion
        excelConverter.Convert(@"C:\MyOutput.pdf");
    }
    static void xlConverter_DocumentParsing(object sender, ExcelDocumentParsingEventArgs e)
    {
        foreach (ExcelWorksheet excelWorksheet in e.Worksheets)
        {
            ExcelWorksheetConversionOptions excelWSOptions = new ExcelWorksheetConversionOptions(ExcelPageSize.A4,50);
            excelWSOptions.DefaultToFile=true;
            excelWorksheet.ConversionOptions=excelWSOptions;
        }
     }
}

ExcelWorksheetConversionOptions(ExcelPageSize, Double, Double)

Initializes a new instance of the ExcelWorksheetConversionOptions class.

public ExcelWorksheetConversionOptions(ExcelPageSize pageSize, double leftAndRightMargin, double topAndBottomMargin)

Parameters

pageSize
ExcelPageSize

size of the page

leftAndRightMargin
Double

The left and right margins of the page in points

topAndBottomMargin
Double

The top and bottom margins of the page in points

Licensing Info

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

Examples

Example shows how to ExcelWorksheetConversionOptions constructor with ExcelPageSize, leftAndRightmargin and topAndBottommargin as parameter.
using ceTe.DynamicPDF.Conversion;

class MyClass
{
    static void Main()
    {
        // Create new instance of Converter by providing suitable parameters.
        ExcelConverter excelConverter = new ExcelConverter(@"C:\MyDocument.xlsx");
       
        excelConverter.DocumentParsing += new ExcelDocumentParsing(xlConverter_DocumentParsing);
        
        //Call Convert method to start conversion
        excelConverter.Convert(@"C:\MyOutput.pdf");
    }
    static void xlConverter_DocumentParsing(object sender, ExcelDocumentParsingEventArgs e)
    {
        foreach (ExcelWorksheet excelWorksheet in e.Worksheets)
        {
            ExcelWorksheetConversionOptions excelWSOptions = new ExcelWorksheetConversionOptions(ExcelPageSize.A4,50,100);
            excelWSOptions.DefaultToFile=true;
            excelWorksheet.ConversionOptions=excelWSOptions;
        }
     }
}

ExcelWorksheetConversionOptions(ExcelPageSize, PageOrientation?, Double)

Initializes a new instance of the ExcelWorksheetConversionOptions class.

public ExcelWorksheetConversionOptions(ExcelPageSize pageSize, PageOrientation? orientation, double margin)

Parameters

pageSize
ExcelPageSize

Size of the page

orientation
PageOrientation?

Orientation of the page

margin
Double

Margin of the page in points

Licensing Info

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

Examples

Example shows how to ExcelWorksheetConversionOptions constructor with ExcelPageSize, pageOrientation and margin as parameter.
using ceTe.DynamicPDF.Conversion;

class MyClass
{
    static void Main()
    {
        // Create new instance of Converter by providing suitable parameters.
        ExcelConverter excelConverter = new ExcelConverter(@"C:\MyDocument.xlsx");
       
        excelConverter.DocumentParsing += new ExcelDocumentParsing(xlConverter_DocumentParsing);
        
        //Call Convert method to start conversion
        excelConverter.Convert(@"C:\MyOutput.pdf");
    }
    static void xlConverter_DocumentParsing(object sender, ExcelDocumentParsingEventArgs e)
    {
        foreach (ExcelWorksheet excelWorksheet in e.Worksheets)
        {
            ExcelWorksheetConversionOptions excelWSOptions = new ExcelWorksheetConversionOptions(ExcelPageSize.A4,PageOrientation.Portrait,50);
            excelWSOptions.DefaultToFile=true;
            excelWorksheet.ConversionOptions=excelWSOptions;
        }
     }
}

ExcelWorksheetConversionOptions(ExcelPageSize, PageOrientation?, Double, Double)

Initializes a new instance of the ExcelWorksheetConversionOptions class.

public ExcelWorksheetConversionOptions(ExcelPageSize pageSize, PageOrientation? orientation, double leftAndRightMargin, double topAndBottomMargin)

Parameters

pageSize
ExcelPageSize

size of the page

orientation
PageOrientation?

orientation of the page

leftAndRightMargin
Double

The left and right margins of the page in points

topAndBottomMargin
Double

The top and bottom margins of the page in points

Licensing Info

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

Examples

Example shows how to ExcelWorksheetConversionOptions constructor with ExcelPageSize, PageOrientation, LeftAndRightMargin and TopAndBottomMargin as parameter.
using ceTe.DynamicPDF.Conversion;

class MyClass
{
    static void Main()
    {
        // Create new instance of Converter by providing suitable parameters.
        ExcelConverter excelConverter = new ExcelConverter(@"C:\MyDocument.xlsx");
       
        excelConverter.DocumentParsing += new ExcelDocumentParsing(xlConverter_DocumentParsing);
        
        //Call Convert method to start conversion
        excelConverter.Convert(@"C:\MyOutput.pdf");
    }
    static void xlConverter_DocumentParsing(object sender, ExcelDocumentParsingEventArgs e)
    {
        foreach (ExcelWorksheet excelWorksheet in e.Worksheets)
        {
            ExcelWorksheetConversionOptions excelWSOptions = new ExcelWorksheetConversionOptions(ExcelPageSize.A4,PageOrientation.Portrait,100,50);
            excelWSOptions.DefaultToFile=true;
            excelWorksheet.ConversionOptions=excelWSOptions;
        }
     }
}

ExcelWorksheetConversionOptions(ExcelWorksheetConversionOptions)

Initializes a new instance of the ExcelWorksheetConversionOptions class

public ExcelWorksheetConversionOptions(ExcelWorksheetConversionOptions xlWorkSheetOptions)

Parameters

Licensing Info

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

See Also

ExcelWorksheetConversionOptions
ceTe.DynamicPDF.Conversion