return xComponentLoader.loadComponentFromURL("private:stream", "_blank", 0, props);
}
public XInputStream getXInputStream(ReportTemplate reportTemplate) {
try {
return new OfficeInputStream(IOUtils.toByteArray(reportTemplate.getDocumentContent()));
} catch (java.io.IOException e) {
throw new OpenOfficeException("An error occurred while converting template to XInputStream", e);
}
}