Spread WPF 17
GrapeCity.Excel Namespace / IExcelReader Interface / SetPrintOption Method
The zero based sheet index used to locate the IExcelWorkbook instance
A IExcelPrintOptions instance used to set the property ExcelPrintOptions for the specified ExcelWorksheet instance.


In This Topic
    SetPrintOption Method
    In This Topic
    Set the print page margins for specified IExcelWorkbook instance.
    Syntax
    'Declaration
     
    Sub SetPrintOption( _
       ByVal sheet As Short, _
       ByVal printOption As IExcelPrintOptions _
    ) 
    'Usage
     
    Dim instance As IExcelReader
    Dim sheet As Short
    Dim printOption As IExcelPrintOptions
     
    instance.SetPrintOption(sheet, printOption)
    void SetPrintOption( 
       short sheet,
       IExcelPrintOptions printOption
    )

    Parameters

    sheet
    The zero based sheet index used to locate the IExcelWorkbook instance
    printOption
    A IExcelPrintOptions instance used to set the property ExcelPrintOptions for the specified ExcelWorksheet instance.
    Exceptions
    ExceptionDescription
    throws when the printOption is null
    See Also