The prerequisites are that you must have a Java implementation greater than
version 1.4, and preset the BIRT_HOME environment variable to the location of the
birt-runtime Root folder.
??? ???
Chapter 11
[ 261 ]
More information can be found in the ReadMe file, and on my website at
http://digiassn.blogspot.com/2006/07/birt-birt-report-schedulingwithout.
html.
First, I am going to create a batch file called runReport.bat. The file will be simple
and only have the following lines:
Set BIRT_HOME=C:\birt_runtime\birt-runtime-2_1_0\
C:\birt_runtime\birt-runtime-2_1_0\ReportEngine\genReport.bat -runrender
-output "c:\birt_runtime\birt-runtime-2_1_0\ReportEngine\sameples\output.
html" -format html "C:\birt_runtime\birt-runtime-2_1_0\ReportEngine\
samples\Hello_World.rptDesign"
To Schedule this file to run, I go to the Control Panel|Scheduled Tasks, and create
a new Scheduled Task. I set the command to run as C:\birt_runtime\birt-runtime-
2_1_0\ReportEngine\runReport.bat. I set up the appropriate time, and set the
directory to start in as C:\birt_runtime\birt-runtime-2_1_0\ReportEngine\. I also
set this to run as a dedicated report user. The following figure illustrates the values I
use under Scheduler.
Deployment
[ 262 ]
Now, I can schedule BIRT reports to run without needing Apache. This cuts down
on system overhead.
Pages:
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211