ComponentOne Excel for .NET
C1.Excel Assembly / C1.Excel Namespace / XLSheet Class / PrintSettings Property
Example

In This Topic
    PrintSettings Property
    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