[]
In a Page Report or an RDLX Report, you can create and maintain a custom assembly for code that you want to use in multiple reports and refer to its methods in expressions. The Script tab in Visual Studio Integrated Designer opens the script editor, where you can provide VB.NET functionality to the reports without compiling the .vb file.
type=note
Note:
- You should be aware that scripts allow you to execute different code and can create a security gap. Therefore, it is not recommended to use scripts in web/cloud environments.
- In WebDesigner, the Scripts are available for Section reports only.
Some of the simpler Page/RDLX report scripting capabilities are discussed in the Scripts topic.
To turn on or off scripts in End-User Report Designer,
set the EnableScripting property of the designer.
Or use the following code in Form1.Designer.cs:
_designer.EnableScripting = false;
You can create custom assemblies in C# or Visual Basic .NET to make code available to multiple reports:
type=note
Note: To make the assembly available for use in your own application and for use in designing reports for your application, copy it to both locations listed above. Alternatively, you can place the assembly in the Global Assembly Cache (C:\Windows\assembly).
To access static members (member denoted as public static in C# assemblies, or as Public Shared in Visual Basic assemblies):
=Namespace.Class.Member
To access class instances:
=Code.InstanceName