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

Invalid value of report paramater

1 Answer 361 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Valdy
Top achievements
Rank 1
Valdy asked on 23 Nov 2015, 01:06 AM

Hi there

Due to we change the Visual Studio from 2008 to 2010, we've updated the 2008 version to 2010 Q3 version of Telerik reporting.  

 We are having trouble with one report, it gives the error: 'value of the parameter of the report invalid'.

This particular report is a dynamic column approach type of report.

So in our ASPX file we just do the like this previously:

Telerik.Reporting.Report report = new EUCTVIReports.MostLeastPreferredReport();
report.ReportParameters["MyParameter1"].Value = dtMostView;
report.ReportParameters["MyParameter2"].Value = dtLeastView;
this.rprtvwrMostLeastPreferred.Report = report;


We passed DataTable into 2 parameters into this report.

Here's the code in telerik reporting called MostLeastPreferredReport (telerik_3a.png, telerik_3b.png, telerik_3c.png, telerik_3d.png) and also Paramters (telerik_2a.png and telerik_2b.png).

Please help. Is there any other approach that I can do?

Thanks

 

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 25 Nov 2015, 03:20 PM
Hello ,

The allowed report parameter data types are Boolean, DateTime, Integer, Float, String. Acceptable values for each type are listed in the ReportParameterType page. Please check if you are passing an allowed data type and value to your report parameters.

To set the table data source to a data table and also have design-time support, you can use the ObjectDataSource Component.

Regards,
Nasko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Valdy
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or