compiling more than one report via batch

Options
hansl
edited February 11, 2022 in Analytics #1
I want to compile more than one report by using a batch file.

The batch file looks somewhat like this:

Set BIRT_HOME=D:\birt-runtime-4_2_1\
D:\birt-runtime-4_2_1\ReportEngine\genReport.bat -f pdf -o "realtest1.pdf" -p "mindate=2012-08-12" D:\ws_birt\test_20_09_2012\parmstest2test_20_09_2012_report.rptdesign
D:\birt-runtime-4_2_1\ReportEngine\genReport.bat -f pdf -o "realtest2.pdf" -p "mindate=2012-08-12" D:\ws_birt\test_20_09_2012\parmstest2test_20_09_2012_report2.rptdesign

Once the compilation of the first report-file is complete, the command line tool closes and the 2nd statement is ignored...

Is it just not possible to compile more than one report file with single batch file?

Comments

  • JasonW
    edited December 31, 1969 #2
    Options
    Take a look at this:
    http://www.robvanderwoude.com/call.php

    Jason
  • hansl
    edited December 31, 1969 #3
    Options
    Hi Jason,

    thanks for the answer.

    Unfortunately i have already tried that and it's not working either.

    The Command line just keeps closing after compiling the first report.
  • JasonW
    edited December 31, 1969 #4
    Options
    I just created a bat file with the following contents:

    call genReport.bat -o c:/br/test2.pdf -f pdf samples/hello_world.rptdesign
    call genReport.bat -o c:/br/test2.xls -f xls samples/hello_world.rptdesign

    And it ran both reports before exiting.

    Jason