Glossary Item Box

Walkthrough: Using Scripting and Stand-Alone Reports

See Also ActiveReports for .NET 2 Online Help Send feedback to Data Dynamics

Scripting

ActiveReports allows you to use scripting to provide more functionality to reports without using .vb or .cs files. Scripting permits reports saved to an RPX (report xml) file to contain code. This characteristic allows the options of stand-alone reporting and web reporting without requiring .vb or .cs files. 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.

Scripting can be used by adding C# code to the script editor at design time or by using rpt.Script 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.

Note: 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

Walkthrough: Using Scripting and Stand-Alone Reports

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.