Adding global functions

  • Hello!

     

    I have just added custom code into Code section of particular report. So far, no problem. The only problem is that scope of this code is specific report. I would like to add set of functions to be used by all existing reports. Is there an easy way to define global functions for the entire RS solution?

     

    Thanks,

    Igor

  • Yes, you can use a custom assembly to accomplish this.  However, using this is disabled be default and you'll need to modify two config files, RSReportDesigner.config and RSReportServer.config.  The code in the files is documented on what to remove.

    The assembly itself can then be written in any .NET language.  Be aware you'll need to copy the custom assembly to your report server when you are read to deploy the report.

    Dave

  • Thanks, David. In this case, I will have to add reference to assembly in every report, correct? I am actually successfully using technique described in following article:

    http://www.developer.com/db/article.php/10920_3513996_1

    I am more of DBA guy than developer and like to have more logic on the database side

    Igor

     

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply