ActiveReports for .NET 3 Online Help Request technical support
Scripting
See Also
User Guide > Concepts > Scripting

Glossary Item Box

ActiveReports allows you to use scripting to provide VB.NET or C#  functionality to reports without needing to use actual .vb or .cs files. This permits reports saved to an RPX (report xml) file to serve as stand-alone reports. By including scripting when the report is saved as an RPX file, it can later be loaded, run, and displayed directly to the viewer control without using the designer. In conjunction with RPX files, scripting allows distributed reports to be updated without recompiling.

 ActiveReports for NET 3.0 loads RPX files, including any scripting, in the InitializeComponent() method.

Scripting can be used by adding C# or VB.NET code to the script editor at design time or by using the rpt.Script property at run time. The script is then saved to the RPX file.

To access the script editor, click the script tab below the report design surface.

Since the RPX file can be read with any text editor, the AddCode or AddNamedItem method should be used to add secure information, such as a connection string, to a project.

Tips for Using Scripting

 

See the following links to learn specifics of using the scripting capabilities of ActiveReports for .NET in your applications.

See Also

©2009. All Rights Reserved.