[]
        
(Showing Draft Content)

Configure Sheet Print Settings

You can set the IPageSetup.PrintGridlinesIPageSetup.PrintHeadingsIPageSetup.BlackAndWhiteIPageSetup.PrintComments and IPageSetup.PrintErrors of the IPageSetup 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;