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

How to use a stored procedure with parameters as a report data source in Silverlight

$
0
0

This approach is actual prior to version 14.1. Starting with version 14.1, use the approach illustrated in the How to bind a report to a stored procedure provided by the SQL Data Source in a Silverlight application example.

In this example, the report is bound to the Northwind database via the CustOrdersDetail stored procedure with the OrderId parameter. To pass parameters to DataSet create a DataAdapter via Visual Studio DataSet designer.

In this case, DataAdapter should be filled manually within the XtraReportBase.DataSourceDemanded event handler. A parameter for a stored procedure is selected by end-users in the Parameters panel and passed to the DataAdapter via the Parameter object (see Parameters Overview). The default parameter's value is set on the client side using the ReportPreviewModel.Parameters collection.

Question Comments

Added By: Frank Franiak at: 6/19/2012 1:46:53 PM    

This makes no sense whatsoever. I have yet to get this software to work on our web server. I think that I am wasting my time with this stuff. Why on Earth would I code something this crazy? How about using a custom function in a data model (edmx file). What's with creating another whole new set of data objects JUST to run reports??? This is nuts!!

Added By: Alex (DevExpress Support) at: 6/20/2012 12:10:22 AM    

Frank,

Please review my answer in the http://www.devexpress.com/Support/Center/p/Q410586.aspx ticket and let me know if you need any clarification.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



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