Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to bind a report displayed in the DocumentViewer extension to the model's data

$
0
0

This example demonstrates how you can bind a Report in your ASP.NET MVC application to your model class.


Note:

Starting with version 14.2 (2014 vol 2), use the ObjectDataSource component to bind your report to your Model class schema as demonstrated in the How to: Bind a Report to an Object Data Source help topic.

In earlier versions, to populate the XtraReport Field List window with your model properties, add the BindingSource component to your report, as shown in the Providing Data to a Web Report help topic.

Question Comments

Added By: Mark Melton 1 at: 1/13/2014 1:46:11 PM    

What I completely DO NOT understand, which therefore leaves me perplexed right this moment is: HOW DID YOU BIND THE REPORT TO THAT "POCO" CLASS IN DESIGN MODE? This is what I am dying to know!

Added By: Vasily (DevExpress Support) at: 1/13/2014 11:51:46 PM    

Hi Mark,

It seems that the same task was discussed in the Q562556: Is there a way to bind a report to a custom model class at design time thread. Please refer to it.

Added By: Prayagraj Dedaniya at: 4/19/2015 11:51:35 PM    

Hi,

In this Example I think You have not Given the Definition of the class "CategoriesReport" used in the Home Controller "DocumentViewerPartialExport" Action method.  So It is bit Difficult for me to understand. So I am requesting you to please Give me Code for the defination of the "CategoriesReport" class ASAP.

Added By: Dmitry Tok (DevExpress Support) at: 4/20/2015 1:19:29 AM    Hello,

Please download this Code Example and open it in Visual Studio. You'll find the definition of the CategoriesReport class in the Reports folder of the project. I've also changed the structure of this Code Example, so that the corresponding source code files are now available for preview.
Thanks

Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>