Adds an object to the script's global namespace. This method allows scripts to become aware of custom classes contained within a project. Once an item has been added, the script can use the objectName string to reference the object and the functions contained within the class.
[Visual Basic]
Public Sub AddNamedItem( _
ByVal objectName As String, _
ByVal objectReference As Object _
)
[C#]
public void AddNamedItem(
string objectName,
object objectReference
);
This method allows you to add objects such as data layer or business objects from the calling application into the report scripting context. For example, you might have an Order class that contains a method for computing sales tax. When you print the order you can pass an Order class instance to the report to allow you to call that method from the report script.
This method is typically used when running reports in stand-alone mode and not compiled into the application.
[C#]
//Add this code to the Class File |
[Visual Basic]
'Add this code to the Class File |
ActiveReport Class | ActiveReport Members | AddCode | ScriptLanguage
Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.