The attached demo application illustrates how to dynamically select the fields to be printed in the report.
Since report fields can neither be added nor deleted at run time, the alternative we present in this application is to prepare the report for all possible fields, leaving the fields’ Visible property as False. Therefore, you will be able to enable the fields’ visibility via scripts by using the report’s OnReportStart event.