Adds an object to the report's script context.
Namespace:
C1.C1ReportAssembly: C1.C1Report.2 (in C1.C1Report.2.dll)
Syntax
C# |
---|
public void AddScriptObject( string name, Object value, bool addToSubreports ) |
Visual Basic |
---|
Public Sub AddScriptObject ( _ name As String, _ value As Object, _ addToSubreports As Boolean _ ) |
Parameters
- name
- Type: System..::..String
Name of the new object (case-insensitive).
- value
- Type: System..::..Object
Value of the new object.
- addToSubreports
- Type: System..::..Boolean
Whether to add the object to the script context of all subreports as well.
Remarks
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.