*/
public boolean savePlainText(final MasterReport report, final String fileName)
{
try
{
final BufferedOutputStream fout = new BufferedOutputStream
(new FileOutputStream(fileName));
// cpi = 15, lpi = 10
final TextFilePrinterDriver pc = new TextFilePrinterDriver(fout, 15, 10);
final PageableTextOutputProcessor outputProcessor = new PageableTextOutputProcessor(pc,
report.getConfiguration());
final PageableReportProcessor proc = new PageableReportProcessor(report, outputProcessor);
proc.processReport();
proc.close();
fout.close();
return true;
}
catch (Exception e)
{
logger.error("Writing PlainText failed.", e);