final ReportProcessor sp;
if ("pageable".equals(exportMethod))//$NON-NLS-1$
{
final PageableHtmlOutputProcessor outputProcessor = new PageableHtmlOutputProcessor(report.getConfiguration());
final HtmlPrinter printer = new AllItemsHtmlPrinter(report.getResourceManager());
printer.setContentWriter(targetRoot, new DefaultNameGenerator(targetRoot, filename, suffix));
printer.setDataWriter(dataRoot, new DefaultNameGenerator(dataRoot, "content")); //$NON-NLS-1$
printer.setUrlRewriter(new FileSystemURLRewriter());
outputProcessor.setPrinter(printer);
sp = new PageableReportProcessor(report, outputProcessor);
}
else
{
final HtmlOutputProcessor outputProcessor = createOutputProcessor();
final HtmlPrinter printer = new AllItemsHtmlPrinter(report.getResourceManager());
printer.setContentWriter(targetRoot,
new DefaultNameGenerator(targetRoot, filename, suffix));
printer.setDataWriter(dataRoot, new DefaultNameGenerator(dataRoot, "content")); //$NON-NLS-1$
printer.setUrlRewriter(new FileSystemURLRewriter());
outputProcessor.setPrinter(printer);
sp = new FlowReportProcessor(report, outputProcessor);
}
if (progressDialog != null)