|
-
Nov 13th, 2015, 01:06 PM
#1
Thread Starter
Frenzied Member
Crystal Report Add One Report Parameter = Missing Parameter Values
Hi
I have a report, that has 3 subreports, i only pass one parameter to the main report, and the subreports are associated with this parameter. Everything was working fine...
Now i need to change the report title at "runtime", so i created a new parameter "TitleChange" has boolean, and after that created a formula that checks the value of TItleChanged parameter, if true returns one string, if not returns another. After this just dragged the formula to the header of the main report.
In preview mode everything is working fine.
But when i set the new parameter by code it says "Missing parameter values" 
I'm setting the parameters like this:
vb.net Code:
Rel.Load(Server.MapPath("~/Reports/MyReport.rpt"), CrystalDecisions.Shared.OpenReportMethod.OpenReportByTempCopy)
Rel.SetParameterValue("@ID", id)
Rel.SetParameterValue("TitleChange", False)
If i remove the new parameter from the report, everything works fine again?!!?
What i'm missing here?!!
THanks
Rate People That Helped You
Mark Thread Resolved When Resolved
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|