Parameters
- name
- Name of the new object (case-insensitive).
- value
- Value of the new object.
- addToSubreports
- Whether to add the object to the script context of all subreports as well.
This method allows you to add custom objects to the context of the C1Report script interpreter.
The script interpreter context is cleared whenever a report starts rendering, so this method should always be called from the StartReport event handler.