Get the report instance from a registered function

edited 10:18AM in FastReport .NET
Is there a way to get the instance of the report that has called a registered function from the functions itself?

My problem: in a web server, concurrent users can open reports at the same time, executing FR in multi-thread, and the function value depends on the parameter values of the report. I cannot pass these values as parameters because there are a lot.

Thank you

Comments

  • edited 10:18AM
    You need to pass the report instance to your function.

    public static string MyFunc(Report report)

    to call it from a report:
    MyFunc(Report)

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.