How to attach an object to a Report instance?
I need to "attach" an object to a Report instance. This object is used by some custom FR functions.
When I say "object", I mean the .Net class object, not a FR object. It is not visible, it is just a reference to a instance.
How can I do it?
Thank you
When I say "object", I mean the .Net class object, not a FR object. It is not visible, it is just a reference to a instance.
How can I do it?
Thank you
Comments
report.SetParameterValue("myRef", some_reference);
In the report, you have to add a reference to an assembly containing this class.
Let me explain, when I load the report, I "attach" an environment object to the report with customer information, like the license, customer name, etc..
This instance is used by some custom functions, but the user does not need to know it. When I call a function, I pass the Report instance as variable, so then I have access to this "attached" object.
report.SetParameterValue() works fine, but then the instance, or at least the name and type are visible by the user.
Is there a way to attach an object to a report instance without to be public?
My other option is to create a derived class, for example:
class MyReport : Report
{
public:
object MyAttachedObject;
}
but I expected to find a more direct way.
Thank you