Professional Documents
Culture Documents
Contents
Script Guide
1 Introduction
2 Getting Started
2.1 Getting a Reference of the ReportServer Sources
2.2 Setting up Eclipse and Groovy . . . . . . . . . .
2.3 Setting up ReportServer in Eclipse . . . . . . . .
2.4 Setting up a Project for Scripts . . . . . . . . . .
2.5 Terminology and Extension Points . . . . . . . .
3 Basics
3.1 Executing Scripts . . . . . . . . . . . . . .
3.2 Executing Scripts via URL . . . . . . . . . .
3.3 The GLOBALS Object . . . . . . . . . . .
3.4 Working with Entities . . . . . . . . . . . .
3.5 Interpreting Script Error Messages . . . . .
3.6 Reading and Writing to Files . . . . . . . .
3.7 Nesting Scripts: Calling Scripts from Scripts
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
9
9
9
10
11
12
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
17
17
18
18
21
23
26
28
Techniques
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
31
31
32
32
34
36
5 Script Reporting
5.1 Basic Script Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.2 Groovys Markup Builder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
39
40
42
.
.
.
.
.
.
.
.
.
.
.
.
.
.
and other
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Advanced
. . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Contents
5.3
5.4
5.5
5.6
5.7
5.8
5.9
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
43
43
45
45
46
46
49
53
53
55
56
59
59
62
64
II Examples
71
73
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
using LDAP
. . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . .
79
79
80
82
85
85
90
A AddFirebirdSupport.groovy
93
B hookldappam.groovy
97
C ldapimport.groovy
ii
101