Excel for WPF | ComponentOne
C1.WPF.Excel Namespace / XLSheet Class / PrintSettings Property
Example

In This Topic
    PrintSettings Property (XLSheet)
    In This Topic
    Gets or sets an XLPrintSettings object that controls how the sheet is printed.
    Syntax
    'Declaration
     
    
    Public Property PrintSettings As XLPrintSettings
    public XLPrintSettings PrintSettings {get; set;}
    Example
    The code below creates a header for the sheet and sets the orientation to landscape:
    XLPrintSettings pp = sheet.PrintSettings();
    pp.Landscape = true;
    pp.Header = "&LLeft Header&CCenter Header&RRight Header";
    See Also