This is a migrated thread and some comments may be shown as answers.

Creating reports using Data objects in Silverlight

3 Answers 67 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Deepak Shakya
Top achievements
Rank 1
Deepak Shakya asked on 11 Jul 2011, 09:22 AM
Hi,

This is my first pass in trying to generate reports in Silverlight. I am using MVVM pattern in my silverlight project. I have object class as Model which further contains collection of other object(s). I do not have any database to store the data. This project is a data entry form and then generates a report at the end using the data entered.

I have generated a class library project to generate the report. How do I get access to the data in my silverlight project? Will referencing the project retain the state of the data? How do I approach? Any help will be highly appreciated.

Thanking you in advance.

3 Answers, 1 is accepted

Sort by
0
Massimiliano Bassili
Top achievements
Rank 1
answered on 11 Jul 2011, 09:28 AM
You do not have a lot of options, in fact the only way to proceed is to flatten your object collection and use the report parameters to pass it as string to the server where the reports reside (are bound, processed and rendered). There is a KB that shows how this is done:
http://www.telerik.com/support/kb/reporting/report-viewers/programmatic-initialization-of-report-parameter-values-in-telerik-reporting-silverlight-viewer.aspx

Cheers!
0
Deepak Shakya
Top achievements
Rank 1
answered on 26 Aug 2011, 05:51 AM
Hi,

I was thinking if there is a way to store my object in Isolated storage and to use that object in the isolated storage as datasource in my report?

If there is such a way, could you please post a code snippet or mechanism of doing so?

Cheers!
0
Massimiliano Bassili
Top achievements
Rank 1
answered on 31 Aug 2011, 04:18 PM

Isolate storage's stores usually reside on the client but an application can also use isolated storage on a server. However, Silverlight does not support roaming profiles that enable information to travel with a user.

Tags
General Discussions
Asked by
Deepak Shakya
Top achievements
Rank 1
Answers by
Massimiliano Bassili
Top achievements
Rank 1
Deepak Shakya
Top achievements
Rank 1
Share this question
or