{
final File tempDir = createTemporaryDirectory("report-designer-html-preview");//$NON-NLS-1$
try
{
final FileRepository targetRepository = new FileRepository(tempDir);
final ContentLocation targetRoot = targetRepository.getRoot();
final HtmlPrinter printer = new AllItemsHtmlPrinter(report.getResourceManager());
printer.setContentWriter(targetRoot, new DefaultNameGenerator(targetRoot, "index", "html"));//$NON-NLS-1$
printer.setDataWriter(targetRoot, new DefaultNameGenerator(targetRoot, "content"));//$NON-NLS-1$