Scripts: Managing Visibility

Sample displaying number of the current line; only odd lines are visible.

Report Template:

dataBand1.InstanceCount = 100 (property sets amount of times the band displays its content in the report)

textBox1.Value = dataBand1.LineNumber (output of the number of the current page)

detail1.Visible (dynamic property, Binding) = “dataBand1.LineNumber % 2 == 0 ? false : true”

I.e. Detail object is visible if the current page is odd.

Report:

In case you manage visibility of the TextBox object (not Detail) there will be an empty line between odd lines – Detail object with invisible Textbox object.

Add Feedback