How to show input parameters inside a report


In a previous post I’ve shown you how to create a report with basic filtering capabilities. Now we are going to tweak that report a little bit to print out the input args along with the report.

There is a lot of ways to do that, but the easiest is just call the base class constructor with the right report options.

The code should look something like this:














And as we can see in the output, now the report is showing the input parameters.




























In the next post will going to explore how we can group data inside a report.



You can get the source code of NRapid from here
And the sample app from here
The Northwind database is available from download at http://www.microsoft.com/en-us/download/details.aspx?id=23654



Comments

Popular posts from this blog

How to create MS Word documents from Office templates using C#

Printing html using the embedded web browser control

WinForms, paging the DataGridView the right way