Class StraightToPlainText
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.demo.ancient.demo.nogui.StraightToPlainText
-
public class StraightToPlainText extends Object
A demonstration that shows how to generate a report and save it to PDF without displaying the print preview or the PDF save-as dialog.- Author:
- David Gilbert
-
-
Constructor Summary
Constructors Constructor Description StraightToPlainText(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
savePlainText(org.pentaho.reporting.engine.classic.core.MasterReport report, String fileName)
Saves a report to PDF format.
-
-
-
Constructor Detail
-
StraightToPlainText
public StraightToPlainText(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
-
savePlainText
public boolean savePlainText(org.pentaho.reporting.engine.classic.core.MasterReport report, String fileName)
Saves a report to PDF format.- Parameters:
report
- the report.fileName
- target file name.- Returns:
- true or false.
-
main
public static void main(String[] args)
Demo starting point.- Parameters:
args
- ignored.
-
-