[]
        
(Showing Draft Content)

Configure Sheet Print Settings

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.

//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;