ktrinad Posted September 5, 2006 Share Posted September 5, 2006 By: holgerkoch - holgerkoch HTML Rendering Bug? 2006-05-16 07:06Hi, i'm using jasperserver 0.9.2 and i have a problem with some report designed with iReport 1.2.2. There are some elements missing in the html view, for example: parts of the groupheader are missing. In the pdf view all is perfect. This problem occures on Windows and Linux. In iReports 1.2.2 the preview looks also perfect. Did anybody have an hint for me for this? best regards Holger Koch Here is the jrxml file: <?xml version="1.0" encoding="UTF-8" ?> <!-- Created with iReport - A designer for JasperReports --> <!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"> <jasperReport name="vorlage" columnCount="1" printOrder="Vertical" orientation="Portrait" pageWidth="595" pageHeight="842" columnWidth="535" columnSpacing="0" leftMargin="30" rightMargin="30" topMargin="20" bottomMargin="20" whenNoDataType="NoPages" isTitleNewPage="true" isSummaryNewPage="true"> <property name="ireport.scriptlethandling" value="0" /> <property name="ireport.encoding" value="UTF-8" /> <import value="java.util.*" /> <import value="net.sf.jasperreports.engine.*" /> <import value="net.sf.jasperreports.engine.data.*" /> <queryString><![CDATA[sELECT m.name, m.vorname, a.abt_langname, m.telefon_dienst_fest, m.telefon_dienst_mobil, m.telefon_priv_fest, m.telefon_priv_mobil FROM mitarbeiter m inner join abteilungen a on a.abt_id = m.abt_id where m.abt_id >= '67' AND m.abt_id <= '69' AND m.vorname != "" order by abt_name, name, vorname;]]></queryString> <field name="name" class="java.lang.String"/> <field name="vorname" class="java.lang.String"/> <field name="abt_langname" class="java.lang.String"/> <field name="telefon_dienst_fest" class="java.lang.String"/> <field name="telefon_dienst_mobil" class="java.lang.String"/> <field name="telefon_priv_fest" class="java.lang.String"/> <field name="telefon_priv_mobil" class="java.lang.String"/> <variable name="Anz_Mitarbeiter" class="java.lang.Integer" resetType="Group" resetGroup="abt_langname" calculation="Count"> <variableExpression><![CDATA[$F{name}]]></variableExpression> </variable> <group name="abt_langname" > <groupExpression><![CDATA[$F{abt_langname}]]></groupExpression> <groupHeader> <band height="43" isSplitAllowed="true" > <rectangle radius="0" > <reportElement mode="Opaque" x="0" y="0" width="535" height="25" forecolor="#000000" backcolor="#CFC8F0" key="rectangle-1"/> <graphicElement stretchType="NoStretch" pen="Thin"/> </rectangle> <staticText> <reportElement x="18" y="1" width="82" height="23" key="staticText-3"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font fontName="Times-Roman" size="16"/> </textElement> <text><![CDATA[Abteilung:]]></text> </staticText> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="100" y="1" width="189" height="23" key="textField-4"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font fontName="Times-Roman" pdfFontName="Helvetica-Bold" size="16" isBold="true"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{abt_langname}]]></textFieldExpression> </textField> <rectangle radius="0" > <reportElement mode="Opaque" x="0" y="25" width="535" height="17" forecolor="#000000" backcolor="#999999" key="element-2"/> <graphicElement stretchType="NoStretch" pen="Thin"/> </rectangle> <staticText> <reportElement x="1" y="25" width="77" height="16" forecolor="#FFFFFF" key="element-3"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font fontName="" size="10"/> </textElement> <text><![CDATA[Name]]></text> </staticText> <staticText> <reportElement x="78" y="25" width="68" height="16" forecolor="#FFFFFF" key="element-3"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font fontName="" size="10"/> </textElement> <text><![CDATA[Vorname]]></text> </staticText> <staticText> <reportElement x="146" y="25" width="112" height="16" forecolor="#FFFFFF" key="element-3"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font fontName="" size="10"/> </textElement> <text><![CDATA[Telefon dienstlich]]></text> </staticText> <staticText> <reportElement x="258" y="25" width="89" height="16" forecolor="#FFFFFF" key="element-3"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font fontName="" size="10"/> </textElement> <text><![CDATA[Mobil dienstlich]]></text> </staticText> <staticText> <reportElement x="347" y="25" width="89" height="16" forecolor="#FFFFFF" key="element-3"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font fontName="" size="10"/> </textElement> <text><![CDATA[Telefon privat]]></text> </staticText> <staticText> <reportElement x="436" y="25" width="89" height="16" forecolor="#FFFFFF" key="element-3"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font fontName="" size="10"/> </textElement> <text><![CDATA[Mobil privat]]></text> </staticText> </band> </groupHeader> <groupFooter> <band height="50" isSplitAllowed="true" > <staticText> <reportElement x="315" y="0" width="121" height="15" key="staticText-9"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Right"> <font/> </textElement> <text><![CDATA[Gesamtanzahl Mitarbeiter:]]></text> </staticText> <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="438" y="0" width="89" height="15" key="textField"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font/> </textElement> <textFieldExpression class="java.lang.Integer"><![CDATA[$V{Anz_Mitarbeiter}]]></textFieldExpression> </textField> </band> </groupFooter> </group> <background> <band height="0" isSplitAllowed="true" > </band> </background> <title> <band height="802" isSplitAllowed="true" > <image evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="0" y="0" width="181" height="40" key="image-1"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <graphicElement stretchType="NoStretch"/> <imageExpression class="java.lang.String"><![CDATA["repo:/images/slogan.gif"]]></imageExpression> </image> <image evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="285" y="0" width="250" height="40" key="image-2"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <graphicElement stretchType="NoStretch"/> <imageExpression class="java.lang.String"><![CDATA["repo:/images/logo.gif"]]></imageExpression> </image> <staticText> <reportElement x="139" y="360" width="304" height="220" key="staticText-1"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font size="24"/> </textElement> <text><![CDATA[Telefonliste Dieser Report erstellt eine Telefonliste aller IOV52 Mitarbeiter]]></text> </staticText> <staticText> <reportElement x="348" y="716" width="173" height="18" key="staticText-2"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font size="12"/> </textElement> <text><![CDATA[DB Systems GmbH, D.IOV 52]]></text> </staticText> <staticText> <reportElement x="348" y="734" width="173" height="18" key="staticText-5"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font size="12"/> </textElement> <text><![CDATA[Holger Koch]]></text> </staticText> <staticText> <reportElement x="348" y="752" width="173" height="18" key="staticText-6"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font size="12"/> </textElement> <text><![CDATA[Version 0.1, 11.05.2006]]></text> </staticText> <rectangle> <reportElement x="0" y="75" width="535" height="50" backcolor="#666666" key="rectangle-3"/> <graphicElement stretchType="NoStretch"/> </rectangle> <staticText> <reportElement x="7" y="85" width="277" height="29" forecolor="#FFFFFF" key="staticText-7"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font size="18"/> </textElement> <text><![CDATA[Verfahrensbetriebsführung INET]]></text> </staticText> </band> </title> <pageHeader> <band height="47" isSplitAllowed="true" > <image evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="0" y="0" width="181" height="40" key="image-3"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <graphicElement stretchType="NoStretch"/> <imageExpression class="java.lang.String"><![CDATA["repo:/images/slogan.gif"]]></imageExpression> </image> <image evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="285" y="0" width="250" height="40" key="image-4"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <graphicElement stretchType="NoStretch"/> <imageExpression class="java.lang.String"><![CDATA["repo:/images/logo.gif"]]></imageExpression> </image> </band> </pageHeader> <columnHeader> <band height="17" isSplitAllowed="true" > </band> </columnHeader> <detail> <band height="17" isSplitAllowed="true" > <line direction="TopDown"> <reportElement x="0" y="15" width="535" height="0" forecolor="#808080" key="line-1" positionType="FixRelativeToBottom"/> <graphicElement stretchType="NoStretch" pen="Thin"/> </line> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="1" y="0" width="77" height="15" key="textField-3"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font fontName="Times-Roman" size="10"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{name}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="78" y="0" width="68" height="15" key="textField-3"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font fontName="Times-Roman" size="10"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{vorname}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="146" y="0" width="112" height="15" key="textField-3"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font fontName="Times-Roman" size="10"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{telefon_dienst_fest}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="258" y="0" width="89" height="15" key="textField-3"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font fontName="Times-Roman" size="10"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{telefon_dienst_mobil}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="347" y="0" width="89" height="15" key="textField-3"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font fontName="Times-Roman" size="10"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{telefon_priv_fest}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="436" y="0" width="89" height="15" key="textField-3"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font fontName="Times-Roman" size="10"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{telefon_priv_mobil}]]></textFieldExpression> </textField> </band> </detail> <columnFooter> <band height="30" isSplitAllowed="true" > </band> </columnFooter> <pageFooter> <band height="17" isSplitAllowed="true" > <staticText> <reportElement x="1" y="0" width="56" height="15" key="staticText-8"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Right"> <font/> </textElement> <text><![CDATA[erzeugt am:]]></text> </staticText> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="61" y="0" width="55" height="15" key="textField-7"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font fontName="Times-Roman" size="10"/> </textElement> <textFieldExpression class="java.util.Date"><![CDATA[new Date()]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="116" y="0" width="181" height="15" key="textField-8"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Right"> <font/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA["Seite " + $V{PAGE_NUMBER} + " von "]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="298" y="0" width="100" height="15" key="textField-9"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Left"> <font/> </textElement> <textFieldExpression class="java.lang.Integer"><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression> </textField> </band> </pageFooter> <lastPageFooter> <band height="20" isSplitAllowed="true" > </band> </lastPageFooter> <summary> <band height="0" isSplitAllowed="true" > </band> </summary> </jasperReport> By: T Kavanagh - tkavanagh RE: HTML Rendering Bug? 2006-05-18 10:12We had another bug reported with a similar problem, but were unable to reproduce it with the jrxml given. Teodor's group can give your jrxml a try when they are back from a well deserved few days off! Thanks for sending along the jrxml. By: T Kavanagh - tkavanagh RE: HTML Rendering Bug? 2006-05-18 10:23Added as bug #1491103 By: holgerkoch - holgerkoch RE: HTML Rendering Bug? 2006-07-03 23:57Hi, after the problem also occurs in the Jasperreport 1.0.1, i look a little bit closer to it. The Problem is, that i write the names of the collumn header white on a grey box, in the pdf view the grey box will be rendered and so all is ok. In the html view the grey box is missing, so the white collumn header on white background will not be seen. If i marked the header, i can see it. Here is the html code of the header: <tr valign="top"> <td colspan="2"><img alt="" src="/jasperserver/servlets/image?image=px" style="width: 31px; height: 16px"/></td> <td colspan="4" style="padding-left: 2px; padding-right: 2px; "><span style="font-family: ; color: #FFFFFF; font-size: 10.0px;">Name</span></td> <td colspan="3" style="padding-left: 2px; padding-right: 2px; "><span style="font-family: ; color: #FFFFFF; font-size: 10.0px;">Vorname</span></td> <td colspan="2" style="padding-left: 2px; padding-right: 2px; "><span style="font-family: ; color: #FFFFFF; font-size: 10.0px;">Telefon dienstlich</span></td> <td colspan="6" style="padding-left: 2px; padding-right: 2px; "><span style="font-family: ; color: #FFFFFF; font-size: 10.0px;">Mobil dienstlich</span></td> <td colspan="2" style="padding-left: 2px; padding-right: 2px; "><span style="font-family: ; color: #FFFFFF; font-size: 10.0px;">Telefon privat</span></td> <td colspan="2" style="padding-left: 2px; padding-right: 2px; "><span style="font-family: ; color: #FFFFFF; font-size: 10.0px;">Mobil privat</span></td> <td colspan="3"><img alt="" src="/jasperserver/servlets/image?image=px" style="width: 40px; height: 16px"/></td> </tr> Does Jasper always remove boxes an so from the html View? Because another box also doesn't appear. Best regards Holger Koch By: Lucian Chirita - lucianc RE: HTML Rendering Bug? 2006-07-04 00:04Have you read the comments on the bug opened by Tony? http://sourceforge.net/tracker/index.php?func=detail&aid=1491103&group_id=162962&atid=825861 Regards, Lucian By: holgerkoch - holgerkoch RE: HTML Rendering Bug? 2006-07-04 02:56No, i haven't. But after i found the problem, i reworked my report (delete the box and set the background color for the textboxes) and now it looks perfect in html. Thank you for your Answer. Best regards Holger Koch Link to comment Share on other sites More sharing options...
thevoice Posted December 6, 2007 Share Posted December 6, 2007 Hello ther, Can anyboy tell me what i have to do to display report in html format from the jasper server. Well i have used iReport's templates to design my reports. For knowledge,i also want to know the reason for reports that not properly displayed in html format Please i need a help to solve this problem. Thank you Link to comment Share on other sites More sharing options...
swood Posted December 9, 2007 Share Posted December 9, 2007 Usually the problem is that HTML output is not layered, while PDF and other output is. If you have report elements that overlap in some way, the PDF display will look fine, while HTML will have "holes" where elements overlap and JasperReports displays nothing. ShermanJasperSoft Link to comment Share on other sites More sharing options...
thevoice Posted December 10, 2007 Share Posted December 10, 2007 Hello swood, Thank you very much for your reply. Please can you explain me what is the mean of "HTML output is not layered,while PDF and other output is". Is it possible to display report from JS in HTML format? If so, then how? Thank you. Link to comment Share on other sites More sharing options...
teodord Posted December 14, 2007 Share Posted December 14, 2007 Hi, This FAQ might answer your questions:http://www.jasperforge.org/jasperreports/faq.html#FAQ9Pay attention to point #2 there. 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