Parameters
- objectName
- The name of the new object.
- objectReference
- The value of the new object.
Exception | Description |
---|---|
System.ArgumentNullException | Thrown if the objectName or objectReference is null. |
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.