problem export to docx

 

                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
boris.malensek's picture
Joined: Nov 21 2012 - 1:20am
Last seen: 10 years 3 months ago

1 Answer:

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

 

shertage's picture
18866
Joined: Sep 26 2006 - 8:06pm
Last seen: 9 months 1 week ago
Feedback
randomness