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.1.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:
@{
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);
}
}