Jump to content
JasperReports Library 7.0 is now available ×

Issues with Frames


Recommended Posts

By: Sathija Pavuluri - sathija

Issues with Frames

2006-08-04 11:48

When a subreport is placed within a frame and the report is exported to RTF the subreport rendering is messed up.

 

It is known that elements in a frame have an offset that is relative to the frame.

But only in this case jasper interprets the offset relative to the current page.

 

Eg:

If I have a subreport in a frame and the subreport element has x=0, y=0; when the report is rendered the subreport appears at the top left corner of the page, while the frame is empty and sitting in the middle of the page (or whereever its location was defined).

 

And when I have multiple frames like this. The frames are displayed correctly, but all the subreports are piled up on top of one another in the top left corner.

 

This issue does not happen in PDF and HTML exports.

Is this a bug that is being addressed or is something else wrong here?

 

Thanks,

Sathija Pavuluri

 

 

By: Lucian Chirita - lucianc

RE: Issues with Frames

2006-08-10 01:56

We were not able to replicate this behaviour. Which JR version are you using? Also, what application are you using to open the RTF file?

 

Regards,

Lucian

 

 

By: Lucian Chirita - lucianc

PS: Issues with Frames

2006-08-10 01:57

Also note that the JR forums have moved to a new home:

http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=215&func=showcat&catid=8

 

Regards

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi,

 

I have the same problem while using a frame element (instead of subreport) inside another frame element.

 

...

<detail>

<band height="250" isSplitAllowed="false">

<frame>

<reportElement positionType="Float" x="0" y="0" width="505" height="235"/>

<box border="1Point" padding="5"/>

<frame>

<reportElement positionType="Float" mode="Opaque" x="0" y="0" width="495" height="21" backcolor="#C0C0C0"/>

<staticText>

<reportElement x="0" y="0" width="80" height="20"/>

<textElement verticalAlignment="Middle">

<font isBold="true" isItalic="true" pdfFontName="Helvetica-BoldOblique"/>

</textElement>

<text><![CDATA[Name:]]></text>

</staticText>

<textField isStretchWithOverflow="true">

<reportElement x="80" y="0" width="200" height="20"/>

<textElement verticalAlignment="Middle">

<font isItalic="true" pdfFontName="Helvetica-Oblique"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{name}]]>

</textFieldExpression>

</textField>

</frame>

...

</frame>

</band>

</detail>

...

 

The frame boxes for each element within the detail band are displayed correctly but all the data within the frame itself is written to the upper left corner of the page. This problem only occurs for RTF documents, but not for PDF documents.

 

Did you meanwhile find a solution for this problem?

 

Thanks and regards,

Sabine

Post edited by: slein, at: 2006/08/28 12:51

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