Script Development
Last updated
Last updated
Scripting is what significantly enhances the functionality of aqua reports. With scripting you can enhance the report not only by relying on the data within aqua but by being able to add data by reading databases or files. You also have the option to save a copy of the report in a certain network drive or to choose not to print certain elements on every event band iteration.
To execute a script on a certain event, you need to add a script function for the event of the element. You can do this by linking a script method to the βBehaviour/Scriptsβ property. All events that the element selected throws are listed within this property. These can vary for different types of elements.
To change to the scripts view, click on the Scripts button at the bottom left of the report designer.
Here, you can add some functionality to your report. For example, if you only want to print a label every second time, you can add the following code:
During script development, you can make use of the entire .NET library, and you reference all elements and their respective properties within the report.
The appearance can be modified with the event βOnPrintPageβ
The appearance can also be modified using format rules.