Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
How to set Parameters in Command Line?
evgeny
Hi and thank you for reading,
I am trying to run a report from the command line with genReport.bat using parameters. My report is running and producing html or pdf just fine, but I would like to specify the parameters in the command line. I tried the following command:
genReport.bat -f PDF cities.pdf -p "City=NYC" -F orders.rptdesign
I get Orders.pdf as output, but the parameter hasn't changed and is still set to the default one. It is also not giving me the requested cities.pdf (I also tried a -o before the cities.pdf but this resulted in an exception).
I am not getting the syntax of these commands. Can someone please give me an example of how include multiple parameters into the command land statement and how to specify the output file.
Thanks a lot in advace
Evgeny
Find more posts tagged with
Comments
evgeny
ok, I figured out how to do it .<br />
<br />
Here is the solution:<br />
genReport.bat -f PDF -o outp3.pdf -p "City=NYC" -p "OrderDate=01/05/2009" D:softwarebirtbirt-runtime-2_5_0ReportEngineorders.rptdesign<br />
<br />
<br />
(with the help of: <a class='bbc_url' href='
http://digiassn.blogspot.com/2006/09/birt-passing-parameters-from-command.html'>The
Digital Voice: BIRT: Passing Parameters from the Command Line for Scheduled Tasks</a>)<br />
<br />
Though I still don't really understand the syntax of the command line statements.<br />
<br />
<br />
<br />
Evgeny