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

WorksheetPrintOptions.FitToPage Property

Indicates whether the worksheet content is scaled to fit to a specific number of pages.

Namespace: DevExpress.Spreadsheet

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

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

bool FitToPage { get; set; }

#Property Value

Type Description
Boolean

true, if the FitToPage print option is enabled; otherwise, false.

#Property Paths

You can access this nested property as listed below:

Object Type Path to FitToPage
Worksheet
.PrintOptions .FitToPage

#Remarks

To scale the content to fit to a specific number of pages, set the FitToPage property to true and specify the desired number of pages by width (WorksheetPrintOptions.FitToWidth property) or by height (the WorksheetPrintOptions.FitToHeight property).

See Also