Back to Devexpress

ExportSettings.ShowPrintNotificationDialog Property

corelibraries-devexpress-dot-xtrareports-dot-web-dot-webdocumentviewer-dot-datacontracts-dot-exportsettings-c9dad02a.md

latest5.1 KB
Original Source

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.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
[DataMember(Name = "showPrintNotificationDialog")]
public bool ShowPrintNotificationDialog { get; set; }
vb
<DataMember(Name:="showPrintNotificationDialog")>
Public Property ShowPrintNotificationDialog As Boolean

Property Value

TypeDescription
Boolean

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

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to ShowPrintNotificationDialog
Cross-Platform Class LibraryReportPreviewSettings

.ExportSettings .ShowPrintNotificationDialog

| | WebDocumentViewerSettingsBase |

.ExportSettings .ShowPrintNotificationDialog

| | .NET Reporting Tools | DxReportDesignerReportPreviewSettings |

.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.

  • 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.

Code Examples

ASP.NET Core

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

Angular

report-viewer.html

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

report-viewer.ts

typescript
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';
    useSameTab: boolean = true;
    showPrintNotificationDialog: boolean = false;
    // ...
}

See Also

ExportSettings Class

ExportSettings Members

DevExpress.XtraReports.Web.WebDocumentViewer.DataContracts Namespace