Jump to content

Recommended Posts

Posted

I want to export a Jasper report with a simple table to Microsoft Word. I encountered a formatting issue with the table starting from MS Word version 2409, while in earlier versions, the layout appears correct. I tried different Jasper versions (6.20.1, 6.23.1, and 7.0.1), but the issue persists.

Here are the details:
 
In Jaspersoft Studio, the table displays correctly in the preview.
When I export the table to Word (.docx) and open it in a Word version prior to 2409, the layout matches the preview in Jaspersoft Studio (first image attached).
 
However, in Word version 2409, the result changes significantly: the column widths are altered, making the report less readable (second image attached).
  
I would like to know if this is a known issue and if there are any solutions to resolve it. 

Thanks in advance.

preview.JPG

word_2409.JPG

  • 4 weeks later...
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Posted

I have been facing the same issue since Microsoft released version 2409 of MS Office Word.

Unfortunately, there doesn’t seem to be a workaround yet.

I re-posted the issue on the forum, hoping it will be resolved soon, but unfortunately, I think it’s a bug on Microsoft’s side, not the Jasper team’s.

Posted

Hello. I have been facing the same problem.

I tried to set 2 property:

<property name="net.sf.jasperreports.export.docx.frames.as.nested.tables" value="false"/>
<property name="net.sf.jasperreports.export.docx.table.fitColumns" value="true"/>

Try that to see if it helps you.

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...