Jump to content

Difficulty editing a report after export to MS Word


Recommended Posts


I need to print a long letter,  filling in some names and other details from the database.   Its working fine but the client then needs to edit the resulting Word Document.

It looks like all Jasper generated content goes into a table and this has proved difficult for them to edit.  For instance,  the contents of TextFields go into table cells outside the normal flow of the document,  so adding content to the cell pushes existing content out of view.

Is there a way to just send text to the document without wrapping it in a table ?



<?xml version="1.0" encoding="UTF-8"?><jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="test" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">	<property name="ireport.zoom" value="1.0"/>	<property name="ireport.x" value="0"/>	<property name="ireport.y" value="0"/>	<queryString language="xPath">		<![CDATA[]]>	</queryString>	<field name="para1" class="java.lang.String">		<fieldDescription><![CDATA[/study/para1]]></fieldDescription>	</field>	<field name="para2" class="java.lang.String">		<fieldDescription><![CDATA[/study/para2]]></fieldDescription>	</field>	<background>		<band splitType="Stretch"/>	</background>	<detail>		<band height="532" splitType="Stretch">			<textField isStretchWithOverflow="true">				<reportElement positionType="Float" stretchType="RelativeToBandHeight" isPrintRepeatedValues="false" x="5" y="57" width="532" height="104"/>				<textElement/>				<textFieldExpression><![CDATA[$F{para1}]]></textFieldExpression>			</textField>		</band>	</detail>	<summary>		<band splitType="Stretch"/>	</summary></jasperReport>
Link to comment
Share on other sites

  • 11 months later...
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Did anyone ever find an answer to this issue?  I am having the same problem.  I generate reports that the client wants to be able to edit in Word and the table formatting makes it very difficult to edit.  Is there an option to generate text areas instead of tables in the Word Exporter?



Link to comment
Share on other sites

  • 9 months later...
  • 1 year later...
  • 4 years later...

Hi all, I have the same problem I'm using Jaspersoft iReport Designer 5.6.0, I need to edit the word file after export, but the tables or text boxes cannot permit to me easily, exist some for generating the document without tables?

I was wondering whether there's any way of exporting the text to a word type document that enables a subsequent user to easily edit the text etc.

Link to comment
Share on other sites

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