Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Programmatically creating silverlight reports

$
0
0

I am following the example in the C# silverlight sample as well as the documentation on this page: http://www.telerik.com/help/reporting/silverlight-report-viewer-embedding_the_silverlight_viewer.html

 

I have an application I am modifying that has existing reports that are essentially paged data grids. What I want to do is create a telerik report to display the data in each datagrid. I am trying to use the technique in the ListBound report that uses the cars list. I have the data on hand in a dto list already, and am trying to pass the information to a report that will display in the silverlight reportviewer.

Here is my code - rptEventSummaryDataSource is an object that is inherited from List:

 

                   //Create the data source
                    rptEventSummaryDataSource theData = new rptEventSummaryDataSource(dataSource as List<IdentityEvents_DTO>);
                   //Set the report name
                    rptViewer.Report = "NLx.TelerikReports.rptEventSummary , NLx.TelerikReports";
                   //Set the data source for the report
                    rptViewer.DataContext = theData;
                   //Refresh to make the data display
                    rptViewer.RefreshReport();

I have the data sources defined in the same project as my viewer since I need to reference them, but my reports are defined in another project - NLx.TelerikReports - and the references have been set in my projects as well as the web project that launches the silverlight app. I also had to define the data sources in the reports project so that here was a definition with which to create the report.

Long and short of it is I cannot get anything to display and I have been killing myself on this for over 24 hours. Any help is greatly appreciated. What I need to do for a start is display Lists of already retrieved data and pass the list off to a report for display.

 


Viewing all articles
Browse latest Browse all 94857

Trending Articles



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