cancel
Showing results for 
Search instead for 
Did you mean: 

The types of the parameter field and parameter field current values are not compatible.

Former Member
0 Kudos

The crystal report  is working fine but when i run the coding in 2008 it shows :The types of the parameter field and parameter field current values are not compatible. This is my coding to pass the parameters in visual studio 2008; (month and year is in nvarchar and username is in int)

ReportParametersObject = New ReportParameters
ReportParametersObject.ParameterName = "@paMonthIn"
ReportParametersObject.ParameterValue = ParentFormController.DateByMonthDateTimePicker.Value.Date.Month.ToString
ReportParametersListObject.Add(ReportParametersObject)

ReportParametersObject = New ReportParameters
ReportParametersObject.ParameterName = "@paYearIn"
ReportParametersObject.ParameterValue = ParentFormController.ToYearDateTimePicker.Value.Date.Year.ToString
ReportParametersListObject.Add(ReportParametersObject)

ReportParametersObject = New ReportParameters
ReportParametersObject.ParameterName = "@paUserIdIn"
ReportParametersObject.ParameterValue = ApplicationHelper.UserName
ReportParametersListObject.Add(ReportParametersObject)

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

Hi Durga

What version of CR are you using? Please be precise. E.g.; CR 2008 is not a version, it's a product name.

- Ludek

Senior Support Engineer AGS Product Support, Global Support Center Canada

Follow me on Twitter

Answers (0)