jbeguec Posted April 24, 2007 Share Posted April 24, 2007 Hi, I am currently having an issue using subreports inside frames with jasperreports-1.2.6 (exporting to PDF files with itext version 1.3.6). The whole report has 9 report files and works fine when executed inside a JBoss 4.0.4 server on Windows XP. However, when executed inside a JBoss 4.0.4 on Linux Fedora Core box, some subreports printed under frames display a different behaviour. When no data is recovered through their SQL request, the subreports (declared with argument whenNoDataType="AllSectionsNoDetail") display their pageHeader properly when executed under windows, but do not when executed under Linux. Behaviour is normal when one or more data rows are recovered. So, this seems to be an issue with the "AllSectionsNoDetail" flag. Is this a known problem ? I can't upgrade to a more recent version of jasperreport than 1.2.6, so is there a workaround that does not involve binary upgrading ? Thanks in advance. Here is the declaration of the frame : <frame><reportElement x="60" y="315" width="502" height="68"key="frame-incid"/><box border="1Point" /> <subreport><reportElementx="8"y="8"width="494"height="20"key="subincdep"positionType="Float"/>.....<!-- subreport parameters and stuff... --></subreport> <subreport><reportElementx="8"y="28"width="494"height="20"key="subinctslots"positionType="Float"/>.....<!-- subreport parameters and stuff... --></subreport> <subreport><reportElementx="8"y="48"width="494"height="20"key="subinctsavis"positionType="Float"/>.....<!-- subreport parameters and stuff... --></subreport></frame> Here is the content of one of the subreports (the two others have the same kind of content) :<jasperReport name="cdeara03inctsavis" columnCount="1" printOrder="Vertical" orientation="Portrait" pageWidth="494" pageHeight="646" columnWidth="494" columnSpacing="0" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" whenNoDataType="AllSectionsNoDetail" isTitleNewPage="false" isSummaryNewPage="false">....<!-- report request and fields -->....<pageHeader><band height="20" isSplitAllowed="false" >...<!-- some static text that does not get displayed when executed under linux with no data recovered -->...</band></pageHeader> <detail><band height="14" isSplitAllowed="true" >...<!-- 3 data-dependant text fields -->...</band></detail> Link to comment Share on other sites More sharing options...
Teodor Danciu Posted April 24, 2007 Share Posted April 24, 2007 Hi, When changing the platform, the primary suspect for rendering problems are the fonts.Make sure the fonts you are using exist on the new platform. It might be that you don't see texts because the JVM does not find some fonts and uses default fonts which have different metrics and hence don't fit in the defined element size. I hope this helps.Teodor Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now