Jump to content
Changes to the Jaspersoft community edition download ×

Grid appearing in DOCX report what should be MIME?


yogarajkhanal

Recommended Posts

Hi,

I tried newly released DOCX exporter and genenated report.

Eeverything went well but i see grid coming in the document.

Anything I am doing worng?

1)pleaces JR 3.5.3 jar on classpath

2)JSF/Jsp

 <ice:outputResource  resource="#{blaCommunicationBackingBean.downloadRtfForBla}" label="Generate Template"
                                        styleClass="squarebutton" fileName="ccmtemplateforbla.docx"
                                        mimeType="application/docx"
                                        />

 

3)Backing bean

 JRDocxExporter exporter = new JRDocxExporter();
            exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
            exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, baos);
            exporter.exportReport();

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Hi,

 

The new DOCX exporter is a grid exporter. It arranges everything in a table, just like the HTML or the XLS one do.

When we created the RTF exporter years ago, using floating text boxes, not tables, everybody asked us why.

Now we expect everybody to ask us why we do tables and not text boxes.

:-)

 

The document you attached looks fine. If you don't want to see the grid lines, go to the Layout/Table tab and click View Gridlines toggle button.

 

I hope this helps.

Teodor

 

Link to comment
Share on other sites

  • 1 month later...
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...