Coder Social home page Coder Social logo

devexpress-examples / reporting-object-data-source-web-application Goto Github PK

View Code? Open in Web Editor NEW
3.0 55.0 2.0 77.03 MB

This example contains the projects with the Document Viewer and Report Designer for ASP.NET WebForms, ASP.NET MVC, ASP.NET Core and Blazor Server. The projects show how to create an object data source, bind it to the report and restore the object data source when the Document Viewer or Report Designer loads a report from the REPX file.

License: Other

C# 21.77% HTML 3.88% Visual Basic .NET 4.89% ASP.NET 0.97% JavaScript 68.49%
datasource dataaccess asp-net asp-net-core asp-net-mvc reporting xtrareport blazor webforms reporting-for-asp-net-core reporting-for-blazor reporting-for-mvc reporting-for-web-forms

reporting-object-data-source-web-application's Introduction

Reporting for Web - How to Use the Object Data Source in Web Reporting Applications

This example includes simple projects with report components (Document Viewer and Report Designer) for ASP.NET WebForms, ASP.NET MVC, ASP.NET Core, and Blazor Server (JavaScript-based) platforms. The project demonstrates how to create an object data source, bind it to a report, and restore the object data source when Document Viewer or Report Designer loads a report from a REPX file.

The ObjectDataSource serves as an intermediate layer between the report and the collection of data elements to which the report is bound. The advantage of ObjectDataSource is that it is serialized in the report definition file (REPX). Otherwise, if you bind the report to a collection of custom objects, the data source information cannot be serialized, and you cannot restore the data source when you load the report from the REPX file.

Assign an ObjectDataSource instance to the DataSource property of the report. The ObjectDataSource instance specifies the type, constructors, methods, and properties of a custom object that creates a collection of data items. The custom object can contain a method that populates the collection of data items at runtime or retrieves data from any external data source.

The CustomWebDocumentViewerReportResolver service in this example implements the IWebDocumentViewerReportResolver interface. The Document Viewer calls that before loading a report specified by name. The service creates a report, assigns the data source, and passes the report to the Document Viewer.

The CustomReportStorageWebExtension service loads and saves a report specified by name in the Report Designer. The service is a ReportStorageWebExtension descendant.

The CustomObjectDataSourceConstructorFilterService implements the IObjectDataSourceConstructorFilterService interface and filters the list of constructors available for the ObjectDataSource in the Report Wizard and Data Source Wizard.

The ObjectDataSourceWizardCustomTypeProvider service implements the IObjectDataSourceWizardTypeProvider interface and defines the list of data types displayed for the ObjectDataSource in the Report Wizard and Data Source Wizard.

This example also demonstrates how to map a report parameter to the parameter used to filter data retrieved from the data source.

Files to Review

ASP.NET WebForms:

ASP.NET MVC:

ASP.NET Core:

Blazor:

Documentation

reporting-object-data-source-web-application's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.