All docs
V21.2
21.2
21.1
20.2
The page you are viewing does not exist in version 20.2. This link will take you to the root page.
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
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.

ExportSettings.ShowPrintNotificationDialog Property

Specifies whether to display an additional dialog that allows users to download the PDF file sent to printing.

Namespace: DevExpress.XtraReports.Web.WebDocumentViewer.DataContracts

Assembly: DevExpress.XtraReports.v21.2.Web.dll

Declaration

[DataMember(Name = "showPrintNotificationDialog")]
public bool ShowPrintNotificationDialog { get; set; }

Property Value

Type Description
Boolean

true, to display an additional dialog; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to ShowPrintNotificationDialog
DxReportDesignerReportPreviewSettings
.ExportSettings.ShowPrintNotificationDialog
ReportPreviewSettings
.ExportSettings.ShowPrintNotificationDialog
WebDocumentViewerModel
.ExportSettings.ShowPrintNotificationDialog

Remarks

The ShowPrintNotificationDialog property is in effect when the UseSameTab property is enabled (the Document Viewer prints documents within the browser tab where it is placed). Use the ShowPrintNotificationDialog property to specify whether to display an additional dialog with a link to the printed PDF file:

  • When users click the Print toolbar icon, the Print dialog appears where they can send a document to the printer.

    The Print dialog

  • If the ShowPrintNotificationDialog property is enabled, the Document Viewer displays an additional dialog with a link to the PDF file that was just sent to the printer.

    An additional dialog

    This additional dialog helps users troubleshoot issues when the browser is unable to print a document. Disable the ShowPrintNotificationDialog property to hide this dialog. However, we recommend that your application should allow users to enable the ShowPrintNotificationDialog property or keep it enabled for cases when a browser stops printing documents after an update.

    You can localize the additional dialog with the following localization strings:

Code Examples

ASP.NET Core

@{
    var viewerRender = Html.DevExpress().WebDocumentViewer("DocumentViewer")
        .Height("1000px")
        .ExportSettings(settings =>
        {
            settings.ShowPrintNotificationDialog = false;
        })
        .Bind("TestReport");
    @viewerRender.RenderHtml()
}

Angular

 

report-viewer.html

<dx-report-viewer [reportUrl]="reportUrl" height="800px">
    <dxrv-request-options [invokeAction]="invokeAction" [host]="hostUrl"></dxrv-request-options>
    <dxrv-export-settings [useSameTab]="useSameTabExport"></dxrv-export-settings>
</dx-report-viewer>>

 

report-viewer.ts

import { Component, Inject, OnInit, ViewEncapsulation } from '@angular/core';

@Component({
  selector: 'report-viewer',
    encapsulation: ViewEncapsulation.None,
    templateUrl: './report-viewer.html',
  styleUrls: [
    //...
  ]
})
export class ReportViewerComponent {
    reportUrl: string = "TestReport";
    invokeAction: string = '/DXXRDV';
    ShowPrintNotificationDialog = false;
: boolean = true;
    // ...
}
See Also