Skip to main content
All docs
V24.2

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

ReportPreviewSettingsBuilder.ExportSettings(Action<ExportSettings>) Method

Allows you to specify settings that apply to print and export operations.

Namespace: DevExpress.AspNetCore.Reporting.ReportDesigner

Assembly: DevExpress.AspNetCore.Reporting.v24.2.dll

NuGet Package: DevExpress.AspNetCore.Reporting

#Declaration

#Parameters

Name Type Description
configure Action<ExportSettings>

A delegate method that includes search settings.

#Returns

Type Description
ReportPreviewSettingsBuilder

A ReportPreviewSettingsBuilder object that can be used to further configure the Report Designer Preview.

#Remarks

The ExportSettings method allows you to hide search actions or disable asynchronous search in Document Preview in Web Reporting.

This property gives you access to the following properties:

ShowPrintNotificationDialog
Specifies whether to display an additional dialog that allows users to download the PDF file sent to printing.
UseAsynchronousExport
Allows you to export documents asynchronously.
UseSameTab
Specifies whether to print and export documents in the browser tab that contains the Document Viewer.

The following code snippet hides an additional dialog that allows users to download the PDF file sent to printing:

cshtml
@{
    var designerRender = Html.DevExpress().ReportDesigner("reportDesigner")
        .Height("100%")
        .ReportPreviewSettings(
            p=>p.ExportSettings(
                s=>s.ShowPrintNotificationDialog = false))
        .Bind(new TestReport());
    @designerRender.RenderHtml()
}

If you bind the Web Report Designer control to a ReportDesignerModel object, use the ReportPreviewSettings(Action<ReportPreviewSettings>) property instead:

public class HomeController : Controller {
        public IActionResult ReportDesigner(
            // ...
            var designerModel = reportDesignerModelBuilder
                .Report(reportName)
                .ReportPreviewSettings(
                    p => p.ExportSettings.ShowPrintNotificationDialog = false)
                .DataSources(x => {
                    x.Add("Northwind", ds);
                })
                .BuildModel();
            return View(designerModel);
        }
}
See Also