Back to Devexpress

Tasks and Solutions for ASP.NET Core Applications

xtrareports-402406-web-reporting-asp-net-core-reporting-tasks-and-solutions-for-asp-net-core-applications.md

latest14.2 KB
Original Source

Tasks and Solutions for ASP.NET Core Applications

  • Mar 25, 2025
  • 4 minutes to read

This section contains developer tasks and links to solutions.

Document Viewer

Reporting Operations

How to…Link to Solution
Open a reportOpen a Report in ASP.NET Core Application
Implement a service that the OpenReport method uses to resolve a report name to a report instanceImplement one of the following services:
IWebDocumentViewerReportResolver
IReportProvider
ReportStorageWebExtension
Print a reportIPreviewModel.Print
Send a report by emailJSReportViewer.PerformCustomDocumentOperation

Toolbar

How to…Link to Solution
Add a command to the ToolbarWebDocumentViewerClientSideEventsBuilder.CustomizeMenuActions
Hide export formats in the ToolbarASPxClientCustomizeExportOptionsEventArgs.HideFormat
Perform custom actions that depend on the selected export formatWebDocumentViewerClientSideEventsBuilder.CustomizeMenuActions
Remove the ToolbarWebDocumentViewerClientSideEventsBuilder.CustomizeElements
Enable MultiPage mode and change the Toggle Multipage Mode iconshowMultipagePreview
Enable the Highlight Editing Fields actionEditablePreviewEnabled

Tab Panel

How to…Link to Solution
Collapse the Tab PanelIPreviewModel.tabPanel
Remove the Tab PanelHandle the WebDocumentViewerClientSideEventsBuilder.CustomizeElements event, find the Tab panel by its ID ( DevExpress.Reporting.Viewer.PreviewElements.RightPanel ), and remove it.

Preview Parameters Panel

How to…Link to Solution
Hide the Preview Parameters panel so that parameters are submitted automaticallySet the Parameter.Visible property to false for all parameters.
Change the “Waiting for parameter values…” textWebDocumentViewerClientSideEventsBuilder.CustomizeLocalization
Create a custom parameter editorCustom Parameter Editor in the Document Viewer (ASP.NET Core)
Hide the Time part in the calendar editorWebDocumentViewerClientSideEventsBuilder.CustomizeParameterEditors
Validate user input and make the parameter “required”WebDocumentViewerClientSideEventsBuilder.CustomizeParameterEditors
Obtain selected parameter values and change themIPreviewModel.GetParametersModel
Initialize a report parameter value before the preview appearsWebDocumentViewerClientSideEventsBuilder.ParametersInitialized
Select the first item in the lookup value listWebDocumentViewerClientSideEventsBuilder.CustomizeParameterLookUpSource

Export Options Panel

How to…Link to Solution
Customize the Export Options panelASPxClientCustomizeExportOptionsEventArgs
Hide the Export Options panelASPxClientCustomizeExportOptionsEventArgs.HideExportOptionsPanel
Use the Show Print Dialog on Open setting in PDF Export OptionsThis option has no effect because most modern browsers disable PDF scripts. Review the following topic for alternatives: Print Without a Preview

Search Panel

How to…Link to Solution
Disable the F hotkey that expands the Search panelIAction.hotKey
Remove the Search panel and hide the Search command in the toolbarSettings.SearchAvailable / WebDocumentViewerSearchSettings.SearchEnabled
Use asynchronous searchWebDocumentViewerSearchSettings.UseAsyncSearch

Document Map Panel

How to…Link to Solution
Show the Document Map panel automatically when the report is loadedWebDocumentViewerClientSideEventsBuilder.DocumentReady

Document Navigation

How to…Link to Solution
Click a report element to navigate to another reportWebDocumentViewerClientSideEventsBuilder.PreviewClick
Navigate pages automaticallyIPreviewModel.GoToPage

Document Settings

How to…Link to Solution
Specify a zoom factor when the document is displayedGetReportPreview
Specify the page render format in report previewPreviewRenderFormat

Clipboard Operation Settings

How to…Link to Solution
Specify a character sequence that separates values of selected bricks when copied to the clipboard.ClipboardSeparator

Report Designer

Toolbox

How to…Link to Solution
Remove a control from the ToolboxReportDesignerClientSideEventsBuilder.CustomizeToolbox

Properties Panel

How to…Link to Solution
Show Quick ActionsQuickActionsVisible
Hide the Task groupTaskGroupVisible
Hide or disable individual editors or sections for the specified control typeJSReportDesigner.GetPropertyInfo
Customize parameter editing settingsSpecify Parameter Editing Settings

How to…Link to Solution
Add/Remove menu and toolbar commandsCustomizeMenuActions
Hide the Add Data Source menu item and the Add Data Source button (Field List Panel)ReportDesignerDataSourceSettings.AllowAddDataSource

Field List Panel

How to…Link to Solution
Hide action buttonsReportDesignerDataSourceSettings
Hide the Add and Delete buttons for parametersAllowEditParameterCollection

Report Wizard

How to…Link to Solution
Initialize report settings shown in the wizardChange the Predefined Wizard Settings
Initialize settings shown on a certain pageChange the Predefined Page Settings
Remove a pageRemove a Page
Remove a page sectionRemove a Page Section
Add/Remove color schemes in the Specify Page Settings pageCustomize Color Schemes
Add/Remove predefined templates or add custom report templatesReportWizardCustomizationService
Customize a newly created reportReportWizardCustomizationService

Appearance

How to…Link to Solution
Register a custom fontReportDesignerClientSideEventsBuilder.BeforeRender