Формирование отчета через JasperReports |
|
Описание инструмента |
Создать файла tempate.xml, в котором:
<?xml version="1.1" encoding="UTF-8" standalone="yes"?> <ReportMetadataConfig name="{name}" description="{description}" mainTemplate="{file name report}" dataSourceClass="{file name java}"> <formats> <format>DOCX</format> </formats> </ReportMetadataConfig> |
Для этого нужно включить логирование класса ru.intertrust.cm.core.gui.impl.server.action.DeployReportPackageActionHandler, для чего в standalone.xml в секцию
<profile>
<subsystem xmlns="urn:jboss:domain:logging:3.0">
...
внести следующие теги.
<periodic-rotating-file-handler name="REPORT_IMPORT_HANDLER" autoflush="true"> <formatter> <named-formatter name="PATTERN"/> </formatter> <file relative-to="jboss.server.log.dir" path="ReportImport.log"/> <suffix value=".yyyy-MM-dd"/> <append value="true"/> </periodic-rotating-file-handler> <logger category="ru.intertrust.cm.core.gui.impl.server.action.DeployReportPackageActionHandler" use-parent-handlers="false"> <level name="DEBUG"/> <handlers> <handler name="REPORT_IMPORT_HANDLER"/> </handlers> </logger> |