on 05-12-2015 10:46 AM
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)
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.