Document Solutions for Excel, .NET Edition | Document Solutions
Features / Print / Page Setup / Configure Print Area
In This Topic
    Configure Print Area
    In This Topic

    At times, you may want to print only a specific area in a worksheet instead of printing the whole worksheet.

    DsExcel .NET supports customized printing by allowing users to select a range of cells in order to configure the desired print area in a worksheet. This can be done by using the PrintArea property of the IPageSetup interface.


    Copy Code
    //Set print area in the worksheet
    worksheet.PageSetup.PrintArea = "$D$5:$G$10";