C1.C1Report.4 Assembly > C1.C1Report Namespace > C1Report Class > AddScriptObject Method : AddScriptObject(String,Object,Boolean) Method |
'Declaration Public Overloads Sub AddScriptObject( _ ByVal name As System.String, _ ByVal value As System.Object, _ ByVal addToSubreports As System.Boolean _ )
public void AddScriptObject( System.string name, System.object value, System.bool addToSubreports )
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.