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 12:52PM
    string parameter = Report.GetParameterValue("ParameterName").ToString();
    if (parameter.Equals(""))
  • edited 12:52PM
    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.