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:
If i remove the new parameter from the report, everything works fine again?!!?
What i'm missing here?!!
THanks
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)
What i'm missing here?!!
THanks