Skip to main content
A newer version of this page is available. .

PdfExportOptions.ShowPrintDialogOnOpen Property

Gets or sets whether to display the Print dialog when a PDF file is opened.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v21.2.Core.dll

NuGet Package: DevExpress.Printing.Core

Declaration

[DefaultValue(false)]
public bool ShowPrintDialogOnOpen { get; set; }

Property Value

Type Default Description
Boolean false

true, to show the Print dialog on open; otherwise, false.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to ShowPrintDialogOnOpen
Cross-Platform Class Library ExportOptions
.Pdf .ShowPrintDialogOnOpen
WinForms Controls DiagramOptionsExport
.PdfExportOptions .ShowPrintDialogOnOpen
WPF Controls DiagramControl
.PdfExportOptions .ShowPrintDialogOnOpen

Remarks

Set the ShowPrintDialogOnOpen property to true to display the Print dialog when users open an exported document.

Do not use this option in web applications because most modern browsers disable scripts in PDF.

Note

The Print dialog is not displayed when users open a document in the following web browsers:

  • Google Chrome version 77 or later.
  • Microsoft Edge.

PdfExportOptions.ShowPrintDialogOnOpen

See Also