Skip to main content

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

GaugeControl.ShowRibbonPrintPreview(PrintSizeMode) Method

Invokes the Ribbon Print Preview Form, which shows the print preview of the gauge.

Namespace: DevExpress.XtraGauges.Win

Assembly: DevExpress.XtraGauges.v24.2.Win.dll

NuGet Package: DevExpress.Win.Gauges

#Declaration

public void ShowRibbonPrintPreview(
    PrintSizeMode sizeMode
)

#Parameters

Name Type Description
sizeMode DevExpress.XtraGauges.Core.Printing.PrintSizeMode

A PrintSizeMode enumeration value which specifies the size mode used to print the gauge.

#Remarks

The Print Preview form displays the gauge as it will appear when printed. To print the gauge, use the GaugeControl.Print method and to export it, use the appropriate ExportTo~ method (e.g. GaugeControl.ExportToHtml, GaugeControl.ExportToPdf, etc.)

Note

The gauge can be previewed, printed or exported only if the XtraPrinting Library is available. To verify this, use the GaugeControl.IsPrintingAvailable property.

See Also