Passing Parameters from Silverlight ReportViewer

1 posts, 0 answers
  1. Vuyiswa Maseko
    Vuyiswa Maseko avatar
    187 posts
    Member since:
    Jan 2010

    Posted 25 Mar 2011 Link to this post

    Good Day All

    I have a Silverlight App that uses Telerik Reports. I can see my report. basicaly my report display a Barcode and i get the Barcode generated Value from the Database and i filter the Data. i am using SQLDatasource and i have a stored Procedure that is defined like this

    CREATE PROCEDURE sp_GetReportbarcode

    and i am passing a Parameter from my silverlight page like this

    KidsModelExtended selectedkid = lstkids.SelectedItem as KidsModelExtended;
    if (selectedkid != null)
        int Kidid = selectedkid.iKidid;
        args.ParameterValues["KIDID"] = Kidid;
    i  have debugged the code and it does and pass the Correct value to the parameter , but when i run my app, i only see a header of the Report not a barcode because it seems like the value has not been passed as depicted in the Screenshot. So to see if the SQlDatasource Control was configured correctly , i passed a value on the parameter on the control and i ran it and it brought me a barcode as depicted below.


Back to Top