JRDocxExporter jrDocx = new JRDocxExporter();
jrDocx.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrints);
jrDocx.setParameter(JRExporterParameter.OUTPUT_STREAM, outputStream);
jrDocx.setParameter(JRDocxExporterParameter.FRAMES_AS_NESTED_TABLES, Boolean.FALSE);
jrDocx.exportReport();
No matter what I set this parameter, document is made of tables.
JRDocxExporterParameter.FRAMES_AS_NESTED_TABLES, Boolean.FALSE
How to disable tables in generation of docx?
Regards
1 Answer:
Posted on November 22, 2012 at 4:36am
Hi,
The JRDocxExporterParameter.FRAMES_AS_NESTED_TABLES parameter cannot be used to disable tables in the DOCX output. It only indicates how frames should be exported: as nested tables themselves, or as single cell content.
JRDocxExporter is a grid exporter based on the table paradigm, so tables cannot be avoided/disabled when using this exporter. All the content in a page will be arranged in a table. But if the report design keeps as most as possible a grid-friendly layout, the presence of this table in the DOCX page might become almost negligible.
Regards,
sanda