Skip to Content
author's profile photo Former Member
Former Member

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

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)

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on May 12, 2015 at 03:03 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.