Home
Analytics
how to generate xml with report engine command line
acervantes
Hi guys,
I would like to know what command I can use in command line to generate reports in XLS files (for Excel), i can do it for html or pdf but I would like to do reports in xml files.
I'm using report designer and report engine version 2.2.2
Thanks in advanced!
AlCe
Find more posts tagged with
Comments
Virgil Dodson
Hi AICe,<br />
<br />
XML is not one of the native output types for reports, although BIRT can consume XML data, and produces an XML report design file.<br />
<br />
You can create an XML emitter for BIRT and there is a link below to a blog post where someone has already done this.<br />
<br />
<a class='bbc_url' href='
http://www.birt-exchange.com/devshare/designing-birt-reports/153-birt-writing-an-xml-emitter/'>http://www.birt-exchange.com/devshare/designing-birt-reports/153-birt-writing-an-xml-emitter/</a>
;
acervantes
Hi guys, I did a mistake in another thread... I'm sorry.
I would like to know what command I can use in command line to generate reports in XLS files (excel), i can do it for html or pdf but I would like to do reports in xml files.
I'm using report designer and report engine version 2.2.2
Thanks in advanced!
ALCE
excited
When running BIRT reports on the command line using the genReport.bat or .sh files, you can actually create more than just HTML or PDF files. The -f (format) option will accept HTML, PDF, DOC, XLS, PPT, or POSTSCRIPT.
HTML
genReport -f HTML -o test.html -F samples/hello_world.rptdesign
PDF
genReport -f PDF -o test.pdf -F samples/hello_world.rptdesign
DOC
genReport -f DOC -o test.doc -F samples/hello_world.rptdesign
XLS
genReport -f XLS -o test.xls -F samples/hello_world.rptdesign
PPT
genReport -f PPT -o test.ppt -F samples/hello_world.rptdesign
POSTSCRIPT
genReport -f POSTSCRIPT -o a_directory_name -F samples/hello_world.rptdesign
For anyone else reading this thread you will need to download the BIRT runtime to find this genReport.bat file in the ReportEngine directory.
acervantes
Thanks a lot! excited!
Where is located this kind of information?
Because I did not find it in any place.
excited
I just ran the genReport.bat file from the command prompt and it told me to set BIRT_HOME environment variable to my BIRT runtime directory. I did that and ran genReport.bat again and it gave me the usage listed below.
_______________________________________
org.eclipse.birt.report.engine.impl.ReportRunner
--mode/-m [ run | render | runrender] the default is runrender
for runrender mode:
we should add it in the end<design file>
--format/-f [ HTML | PDF ]
--output/-o <target file>
--htmlType/-t < HTML | ReportletNoCSS >
--locale /-l<locale>
--parameter/-p <"parameterName=parameterValue">
--config/-c <"configName=configValue">
--renderOption/-r <"optionName=optionValue">
--file/-F <file>
--encoding/-e <target encoding>
Locale: default is english
parameters/configs/renderOptions in command line will overide those in file
parameter/config/renderOption name can't include characters such as ' ', '=', ':'
For RUN mode:
we should add it in the end<design file>
--output/-o <target file>
--locale /-l<locale>
--parameter/-p <parameterName=parameterValue>
--config/-c <"configName=configValue">
--renderOption/-r <"optionName=optionValue">
--file/-F <file>
Locale: default is english
parameters/configs/renderOptions in command line will overide those in file
parameter/config/renderOption name can't include characters such as ' ', '=', ':'
For RENDER mode:
we should add it in the end<design file>
--output/-o <target file>
--page/-n <pageNumber>
--config/-c <"configName=configValue">
--renderOption/-r <"optionName=optionValue">
--file/-F <file>
--locale /-l<locale>
Locale: default is english
configs/renderOptions in command line will overide those in file
config/renderOption name can't include characters such as ' ', '=', ':'
amrutha
<blockquote class='ipsBlockquote' data-author="'excited'" data-cid="36462" data-time="1219848707" data-date="27 August 2008 - 07:51 AM"><p>
I just ran the genReport.bat file from the command prompt and it told me to set BIRT_HOME environment variable to my BIRT runtime directory. I did that and ran genReport.bat again and it gave me the usage listed below.<br />
<br />
<br />
_______________________________________<br />
<br />
org.eclipse.birt.report.engine.impl.ReportRunner<br />
<br />
<br />
--mode/-m [ run | render | runrender] the default is runrender<br />
<br />
<br />
for runrender mode:<br />
<br />
we should add it in the end<design file><br />
<br />
--format/-f [ HTML | PDF ]<br />
<br />
--output/-o <target file><br />
<br />
--htmlType/-t < HTML | ReportletNoCSS ><br />
<br />
--locale /-l<locale><br />
<br />
--parameter/-p <"parameterName=parameterValue"><br />
<br />
--config/-c <"configName=configValue"><br />
<br />
--renderOption/-r <"optionName=optionValue"><br />
<br />
--file/-F <file><br />
<br />
--encoding/-e <target encoding><br />
<br />
<br />
Locale: default is english<br />
<br />
<br />
parameters/configs/renderOptions in command line will overide those in file<br />
<br />
<br />
parameter/config/renderOption name can't include characters such as ' ', '=', ':'<br />
<br />
<br />
For RUN mode:<br />
<br />
we should add it in the end<design file><br />
<br />
--output/-o <target file><br />
<br />
--locale /-l<locale><br />
<br />
--parameter/-p <parameterName=parameterValue><br />
<br />
--config/-c <"configName=configValue"><br />
<br />
--renderOption/-r <"optionName=optionValue"><br />
<br />
--file/-F <file><br />
<br />
<br />
Locale: default is english<br />
<br />
<br />
parameters/configs/renderOptions in command line will overide those in file<br />
<br />
<br />
parameter/config/renderOption name can't include characters such as ' ', '=', ':'<br />
<br />
<br />
For RENDER mode:<br />
<br />
we should add it in the end<design file><br />
<br />
--output/-o <target file><br />
<br />
--page/-n <pageNumber><br />
<br />
--config/-c <"configName=configValue"><br />
<br />
--renderOption/-r <"optionName=optionValue"><br />
<br />
--file/-F <file><br />
<br />
--locale /-l<locale><br />
<br />
<br />
Locale: default is english<br />
<br />
<br />
configs/renderOptions in command line will overide those in file<br />
<br />
<br />
config/renderOption name can't include characters such as ' ', '=', ':'<br /></p></blockquote>
amrutha
Plz can someone tel me hw to set BIRT_HOME plzzz
Saar Netzer
<p>set BIRT_HOME=C:apachewebappsbirt</p>