Class StraightToXML
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.demo.ancient.demo.nogui.StraightToXML
-
public class StraightToXML extends Object
A demonstration that shows how to generate a report and save it to XML without displaying any print preview first.- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Constructor Description StraightToXML(String filename)
Creates a new demo application.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
Demo starting point.boolean
saveXML(org.pentaho.reporting.engine.classic.core.MasterReport report, String fileName)
Saves a report to XML format.
-
-
-
Constructor Detail
-
StraightToXML
public StraightToXML(String filename) throws org.pentaho.reporting.libraries.xmlns.parser.ParseException
Creates a new demo application.- Parameters:
filename
- the output filename.- Throws:
org.pentaho.reporting.libraries.xmlns.parser.ParseException
- if the report could not be parsed.
-
-
Method Detail
-
saveXML
public boolean saveXML(org.pentaho.reporting.engine.classic.core.MasterReport report, String fileName)
Saves a report to XML format.- Parameters:
report
- the report.fileName
- target file name.- Returns:
true
if the export succeeded, andfalse
otherwise.
-
main
public static void main(String[] args)
Demo starting point.- Parameters:
args
- ignored.
-
-