GaugeControl.ShowPrintPreview(PrintSizeMode) Method

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

Namespace: DevExpress.XtraGauges.Win

Assembly: DevExpress.XtraGauges.v20.1.Win.dll

Declaration

public void ShowPrintPreview(
    PrintSizeMode sizeMode
)
Public Sub ShowPrintPreview(
    sizeMode As PrintSizeMode
)

Parameters

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

A PrintSizeMode enumeration value that specifies whether the gauge control must be stretched, zoomed or printed as is.

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