StringBuilder sb = page.render(pc);
return convertXhtmlToDocx(page.getWorkspace(), sb.toString());
}
catch (Docx4JException ex)
{
throw new ReportException("[Docx4JException] " + ex.getMessage(), ex);
}
catch (IOException ex)
{
throw new ReportException("[IOException] " + ex.getMessage(), ex);
}
catch (JAXBException ex)
{
throw new ReportException("[JAXBException] " + ex.getMessage(), ex);
}
}