Wrong convert report to docx

Hi

i am using jaspersoft studio, when converting report to pdf everything goes well.

Problems begin when converting the report to docx.

The first problem is bad worked out the transfer of cells to the next page.

The second problem, when there are a lot of frames, the borders are displayed incorrectly (several lines are visible)

What am I doing wrong? How can I fix the situation?

Thanks for your recommendations

 

<band height="30">

<frame>

<reportElement stretchType="ContainerHeight" mode="Opaque" x="0" y="0" width="510" height="30" backcolor="#DDEBF6" uuid="21ed4b25-4783-4992-8e26-c01bf299c72c">

<property name="com.jaspersoft.studio.unit.height" value="px"/>

</reportElement>

<box>

<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>

<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>

<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>

<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>

</box>

<frame>

<reportElement stretchType="ElementGroupHeight" mode="Opaque" x="252" y="0" width="258" height="30" backcolor="#FFFFFF" uuid="d4369cae-b89f-4805-9d73-6bcd296c0eb5">

<property name="com.jaspersoft.studio.unit.height" value="px"/>

<property name="com.jaspersoft.studio.unit.width" value="px"/>

</reportElement>

<box>

<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>

<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>

<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>

<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>

</box>

<textField textAdjust="StretchHeight">

<reportElement mode="Transparent" x="4" y="0" width="250" height="28" uuid="875a5865-7c4f-4e69-8371-13573aff1c06">

<property name="com.jaspersoft.studio.unit.width" value="px"/>

<property name="com.jaspersoft.studio.unit.height" value="px"/>

<property name="com.jaspersoft.studio.unit.tabStopWidth" value="px"/>

</reportElement>

<box padding="1">

<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>

<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>

<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>

<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>

</box>

<textElement>

<font fontName="PT Serif" size="9"/>

<paragraph tabStopWidth="40"/>

</textElement>

<textFieldExpression><![CDATA[$F{productDescription}==null? (($F{productVersionStage}==3 || $F{productVersionStage}==4 || $F{productVersionStage}==5 || $F{productVersionStage}==6)?"not doing":""): $F{productDescription}]]></textFieldExpression>

</textField>

</frame>

<staticText>

<reportElement mode="Opaque" x="4" y="1" width="246" height="28" backcolor="#DDEBF6" uuid="afa270d0-72c0-4365-9e81-a1337454ecf8">

<property name="com.jaspersoft.studio.unit.x" value="px"/>

</reportElement>

<box padding="1">

<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>

<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>

<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>

<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>

</box>

<textElement>

<font fontName="PT Serif" size="9" isBold="true"/>

</textElement>

<text><![CDATA[Report product*]]></text>

</staticText>

</frame>

</band>

 

 

Second sample

 

<band height="56">

<frame>

<reportElement stretchType="ElementGroupHeight" mode="Opaque" x="0" y="0" width="252" height="56" backcolor="#DDEBF6" uuid="b015693c-2562-4bab-859c-004c578eaffb"/>

<box>

<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>

<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>

<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>

<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>

</box>

<staticText>

<reportElement stretchType="ElementGroupHeight" mode="Transparent" x="4" y="0" width="246" height="50" backcolor="#DDEBF6" uuid="cf093e66-7362-4ed7-9e3b-bed941a94152">

<property name="com.jaspersoft.studio.unit.height" value="px"/>

</reportElement>

<box padding="0">

<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>

<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>

<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>

<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>

</box>

<textElement>

<font fontName="PT Serif" size="9" isBold="true"/>

</textElement>

<text><![CDATA[not doing]]></text>

</staticText>

</frame>

<frame>

<reportElement x="252" y="28" width="258" height="28" uuid="e8e2c42c-094f-496e-84cf-0c721b6f1e2e"/>

<box>

<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>

<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>

<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>

<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>

</box>

<componentElement>

<reportElement stretchType="ElementGroupHeight" x="0" y="0" width="258" height="28" uuid="6296e721-021e-4b8c-83ee-38177c8c5811">

<property name="com.jaspersoft.studio.unit.height" value="pixel"/>

</reportElement>

<jr:list xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" printOrder="Vertical">

<datasetRun subDataset="Metrics" uuid="615297e4-bfd2-4f4c-86c2-25ffd1f79f12">

<dataSourceExpression><![CDATA[((net.sf.jasperreports.engine.data.JsonDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("metrics")]]></dataSourceExpression>

</datasetRun>

<jr:listContents height="28" width="258">

<frame>

<reportElement x="0" y="0" width="130" height="28" uuid="922a3b24-73e5-4100-bc95-a6faf6ba9b55">

<property name="com.jaspersoft.studio.unit.width" value="px"/>

</reportElement>

<box>

<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>

<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>

<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>

<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>

</box>

<textField textAdjust="StretchHeight">

<reportElement stretchType="ElementGroupHeight" x="4" y="0" width="121" height="28" uuid="5d323b3c-80d3-4e5a-acfb-720077172aeb">

<property name="com.jaspersoft.studio.unit.height" value="pixel"/>

<property name="com.jaspersoft.studio.unit.width" value="px"/>

<property name="com.jaspersoft.studio.unit.x" value="px"/>

</reportElement>

<box topPadding="0" leftPadding="1" bottomPadding="0" rightPadding="0">

<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>

<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>

<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>

<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>

</box>

<textElement>

<font fontName="PT Serif" size="9"/>

</textElement>

<textFieldExpression><![CDATA[$F{serviceMetricId} == null ? "not doing": $F{serviceMetricId.caption}]]></textFieldExpression>

</textField>

</frame>

<textField textAdjust="StretchHeight">

<reportElement stretchType="ElementGroupHeight" x="130" y="0" width="128" height="28" uuid="3ac23e1b-7cc9-4433-8e52-0351932f2ba9"/>

<box topPadding="0" leftPadding="1" bottomPadding="0" rightPadding="0">

<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>

<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>

<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>

<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>

</box>

<textElement textAlignment="Center">

<font fontName="PT Serif" size="9"/>

</textElement>

<textFieldExpression><![CDATA[$F{value}==null? "not doing" : $F{value}]]></textFieldExpression>

</textField>

</jr:listContents>

</jr:list>

</componentElement>

</frame>

<frame>

<reportElement x="252" y="0" width="258" height="28" uuid="5d469c4d-1480-41d6-82f2-7f2c0968b437"/>

<box>

<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>

<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>

<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>

<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>

</box>

<staticText>

<reportElement x="0" y="0" width="130" height="28" uuid="5cd53a8b-ed3a-4433-b54c-93c4c86c9f56">

<property name="com.jaspersoft.studio.unit.width" value="px"/>

</reportElement>

<box padding="2">

<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>

<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>

<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>

<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>

</box>

<textElement textAlignment="Center">

<font fontName="PT Serif" size="9"/>

</textElement>

<text><![CDATA[Metrics]]></text>

</staticText>

<staticText>

<reportElement x="130" y="0" width="128" height="28" uuid="2c79201c-19ce-449c-ab08-c5e7e025be63">

<property name="com.jaspersoft.studio.unit.width" value="pixel"/>

<property name="com.jaspersoft.studio.unit.x" value="px"/>

</reportElement>

<box padding="2">

<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>

<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>

<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>

<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>

</box>

<textElement textAlignment="Center">

<font fontName="PT Serif" size="9"/>

</textElement>

<text><![CDATA[Indication]]></text>

</staticText>

</frame>

</band>

 

 

 

 

 

stolypin.dmitry's picture
Joined: May 31 2023 - 12:45am
Last seen: 3 months 1 week ago

Thank you for posting to the Jaspersoft Community. Our team of experts has read your question and we are working to get you an answer as quickly as we can. If you have a Jaspersoft Professional Subscription plan, please visit https://support.tibco.com/s/ for direct access to our technical support teams offering guaranteed response times.
 

mrajkuma - 3 months 2 weeks ago

Hi,

Could you please provide the jrxml report? Also, provide pdf and word export to check the issue.

rushinde - 3 months 1 week ago

We are eagerly anticipating your response to the comment mentioned above. Please provide the requested information so that we can assist you in addressing your question effectively.
 

mrajkuma - 2 months 3 weeks ago

0 Answers:

No answers yet
Feedback
randomness