Documents for Excel .NET Edition | GCDocuments
Features / Print Settings / Configure Sheet Print Settings
In This Topic
    Configure Sheet Print Settings
    In This Topic

    You can set the PrintGridlines propertyPrintHeadings propertyBlackAndWhite propertyPrintComments property and PrintErrors property of the IPageSetup interface in order to configure the print settings for the sheet. 

    C#
    Copy Code
    //Configure sheet print settings
                
    worksheet.PageSetup.PrintGridlines = true;
    worksheet.PageSetup.PrintHeadings = true;
    worksheet.PageSetup.BlackAndWhite = true;
    worksheet.PageSetup.PrintComments = PrintLocation.InPlace;
    worksheet.PageSetup.PrintErrors = PrintErrors.Dash;