Skip to content

Generate a report at runtime for the specified data table and query in the ASP.NET MVC app.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/reporting-mvc-generate-report-dynamically-for-specified-query

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reporting for MVC - How to Dynamically Generate a Report for a Table or Query

This example demonstrates how to use the Web Document Viewer to display the results of the SQL query in the form of a report. The data source query name is specified in the URL query string.

Web Forms - a Report Generated for a Query

In this example the XRTable control in a report is created at runtime based on the query results. The query is created at runtime for the specified table. The user specifies the table name in the URL query string.

In the XtraReport code-behind, the SqlDataSource instance is created and populated with data retrieved from the SQL query. The XRTable control is created in code, with table cells bound to the data table columns.

The project uses the SQLite database with Northwind data.

Files to Review

Documentation

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)