All docs
V21.1
21.2 (EAP/Beta)
21.1
20.2
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

SpreadsheetPrintOptions.PrintContent Property

Specifies spreadsheet content to print/display within the Print Preview.

Namespace: DevExpress.XtraSpreadsheet

Assembly: DevExpress.Spreadsheet.v21.1.Core.dll

Declaration

[DefaultValue(SpreadsheetPrintContent.Default)]
[XtraSerializableProperty]
public SpreadsheetPrintContent PrintContent { get; set; }

Property Value

Type Description
SpreadsheetPrintContent

An enumeration member that specifies spreadsheet content to print.

Property Paths

You can access this nested property as listed below:

Object Type Path to PrintContent
SpreadsheetControlOptions
.Print.PrintContent

Remarks

Use the PrintContent property to specify what to print in the Spreadsheet control.

You can set this property to one of the following values:

  • Default - default value (= EntireWorkbook).

  • EntireWorkbook - prints the entire workbook.

  • ActiveSheets - prints the active sheet and all selected sheets (if any). To print multiple sheets, hold Ctrl when you click sheet tabs in the control.

  • Selection - prints selected cells of the active worksheet. If a chart sheet is active, it is printed completely.

The following example specifies that the Spreadsheet control should print only selected sheets.

spreadsheetControl1.Options.Print.PrintContent =
    DevExpress.XtraSpreadsheet.SpreadsheetPrintContent.ActiveSheets;
See Also