Access Parameters in Event

I try to use a parameter value to conditionally show or hide fields in my report but I can't find the syntax.

I've tried:

private void PageFooter1_BeforeLayout(object sender, EventArgs e)
{

if (Parameter("ParameterName") != "")
if (Get("ParameterName") != "")
if (Parameter<"ParameterName"> != "")
if (Parameter["ParameterName"] != "")


But none of them works. What is the correct syntax?

TIA

Comments

  • edited 1:57AM
    string parameter = Report.GetParameterValue("ParameterName").ToString();
    if (parameter.Equals(""))
  • edited 1:57AM
    ipong wrote: »
    string parameter = Report.GetParameterValue("ParameterName").ToString();
    if (parameter.Equals(""))

    Thanks, this works!

    Hope it helps others who can't find it in the manual as well

Leave a Comment