testdev-examples / Reporting_how-to-dynamically-generate-a-report-in-an-aspnet-mvc-application-e4714

How to create a report at runtime and preview it on a webform in an ASP.NET MVC application.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Files to look at:

How to dynamically generate a report in an ASP.NET MVC application

This example illustrates how to create a DevExpress Report in code and preview it on a web page in an ASP.NET MVC application.

Create a report at runtime

To create a report at runtime, create a report instance and add report bands and report controls. Specify expression bindings for report controls. Bind the report to data.

Preview a report of a web page

Use the Web Document Viewer to preview a report on a web page. In this example, the viewer uses IReportProvider to load a report by its name. The name of a report is passed to the Bind method of WebDocumentViewerExtension. You can also bind the viewer to a report instance, a model, or the report associated with the specified CachedReportSourceWeb object. For more information, see WebDocumentViewerExtension.Bind method overloads.

See also

About

How to create a report at runtime and preview it on a webform in an ASP.NET MVC application.

License:Other


Languages

Language:JavaScript 86.6%Language:C# 6.8%Language:Visual Basic .NET 4.9%Language:HTML 1.6%Language:ASP.NET 0.1%