Making a report Modular with ReportViewer

I have a a part of my program that when when a sales order is complete, feeds parameters to another window that basically just has a report viewer. The second page of this report has a table of values, materials and cost of materials, travel expense and cost of travel expense etc.

What I want to know is how to make it such that I can send a boolean parameter from my original screen to indicate if a row in that table is shown or not. For instance we don’t normally use material costs, so most of the time I’d want that not present.

How can I do this?

You’d have to create the input parameter on the report first. That acts as your signal for what to filter (could be an int if you had multiple variations).

When you populate your datasources (I’d probably use scripting at this point), configure the necessary filters based on the input.


image

1 Like