Skip to Content
author's profile photo
Former Member

Parameter is string but ask for number in asp .net

i pass a string to a string parameter in crystal report made in version 8.5 and now my computer installed cyrstal report 2008

it pop up error "this must be a number"

but when i change to pass integer

rDoc.SetParameterValue("ChequeLayoutID", Convert.ToInt32(ChequeLayoutID));

it also pop up the same error!!

i meet this error before, my solution is to recreate a new report with version 2008

however, this time there are many reports, how to do without recreate?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Posted on May 03, 2011 at 02:57 PM

    1) Make sure you have SP3P:

    https://smpdl.sap-ag.de/~sapidp/012002523100007123572010E/cr2008_sp3.exe

    2) Are you able to run the report in the CR 2008 designer without problems?

    3) If you do not use any code to pass the parameter, but let the viewer prompt and fill in the parameter manually, does it work?

    - Ludek

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on May 04, 2011 at 03:41 AM

    solved by adding val{} in select expert in old version of crystal report.

    Add comment
    10|10000 characters needed characters exceeded