("component-drawing.xml", ComponentDrawingDemoHandler.class);
if (in == null)
{
return;
}
final MasterReport report = generator.parseReport(in);
report.getReportConfiguration().setConfigProperty
("org.pentaho.reporting.engine.classic.core.AllowOwnPeerForComponentDrawable", "true");
final PaintComponentTableModel tableModel = new PaintComponentTableModel();
tableModel.addComponent(frame);
report.setDataFactory(new TableDataFactory("default", tableModel));