Hi
I am trying to pass an int array from SilverLight Codebhind throigh ReportParameters to the Report. I am getting the follwoing error when i run the app.
"An error has occured while processing Report 'Report2'
An error has occured while resolving 'Objectdatasource1 datasource: Object must implement IConvertible'".
The fllowing is the xaml codebhind
The following is the method the object data source is bound to using dataMember propery
Please help me how do i do it.
Thanks in advance
Ravindra
I am trying to pass an int array from SilverLight Codebhind throigh ReportParameters to the Report. I am getting the follwoing error when i run the app.
"An error has occured while processing Report 'Report2'
An error has occured while resolving 'Objectdatasource1 datasource: Object must implement IConvertible'".
The fllowing is the xaml codebhind
public partial class MainPage : UserControl { public MainPage() { InitializeComponent(); } private void RepViewer_RenderBegin(object sender, Telerik.ReportViewer.Silverlight.RenderBeginEventArgs args) { args.ParameterValues["productIds"] = new object[] {2, 3}; } }The following is the method the object data source is bound to using dataMember propery
public IQueryable<Product> GetProductsByIds(int[] productIds) { return this.ObjectContext.Products.Where(prod => productIds.Contains(prod.ProductID)); }Please help me how do i do it.
Thanks in advance
Ravindra