Skip to main content
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Worksheet.GetPrintableRange(Boolean) Method

Calculates a worksheet range that can be printed with respect to the specified print area.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v24.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

CellRange GetPrintableRange(
    bool usePrintAreaDefinedName
)

#Parameters

Name Type Description
usePrintAreaDefinedName Boolean

true, to take into account the print area defined by the _xlnm.Print_Area name; otherwise, false.

#Returns

Type Description
CellRange

A CellRange object that is the printable worksheet range.

#Remarks

The GetPrintableRange method returns a range that meets conditions listed in the GetPrintableRange method override without parameters. However, if the usePrintAreaDefinedName parameter is true and the _xlnm.Print_Area name defines a range that is contained within the calculated printable range, the GetPrintableRange method returns the print range defined by the _xlnm.Print_Area name.

See Also