gulasbot Posted September 15, 2008 Share Posted September 15, 2008 Hi, i have a problem. When a i run a pdf report in windows, its display diferent to linux.It seems like a padding on the right and produce a overflow and break line. I am developing in windows, but in production use linux. The server is tomcat 6, jre 1.6, Ireport 3.0 and Jasperreport 3.0.The font i used is time new roman. I leave you some pictures and a code test:Windows:http://img381.imageshack.us/img381/2443/ireporwinkz5.th.jpgLinux:http://img381.imageshack.us/img381/4518/ireporlinuxey8.th.jpg Someone can help me? Thanks and sorry my englishCode:<?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="Reporte Sin Titulo 1" columnCount="1" printOrder="Vertical" orientation="Portrait" pageWidth="595" pageHeight="842" columnWidth="535" columnSpacing="0" leftMargin="30" rightMargin="30" topMargin="20" bottomMargin="20" whenNoDataType="NoDataSection" isTitleNewPage="false" isSummaryNewPage="false"> <property name="ireport.scriptlethandling" value="2" /> <property name="ireport.encoding" value="UTF-8" /> <import value="java.util.*" /> <import value="net.sf.jasperreports.engine.*" /> <import value="net.sf.jasperreports.engine.data.*" /> <parameter name="1" isForPrompting="false" class="java.lang.String"> <defaultValueExpression ><![CDATA["Hola A un informe jasper podremos pasarle tantos parametros como necesitemos para ello debemos crear un Hastable"]]></defaultValueExpression> </parameter> <parameter name="2" isForPrompting="false" class="java.lang.String"> <defaultValueExpression ><![CDATA["Hola A un informe jasper podremos pasarle tantos parametros como necesitemos para ello debemos crear un Hastable"]]></defaultValueExpression> </parameter> <parameter name="3" isForPrompting="false" class="java.lang.String"> <defaultValueExpression ><![CDATA["Hola A un Hola A un informe jasper podremos pasarle tantos parametros como necesitemos para ello debemos crear un Hastable"]]></defaultValueExpression> </parameter> <parameter name="4" isForPrompting="false" class="java.lang.String"> <defaultValueExpression ><![CDATA["Hola A un informe jaspe podremos pasarle tantos parametros como r podremos pasarle tantos parametros como necesitemos para ello debemos crear un Hastable"]]></defaultValueExpression> </parameter> <field name="pepe" class="java.lang.String"> <property name="cadena" value="valor" /> </field> <background> <band height="0" isSplitAllowed="true" > </band> </background> <title> <band height="16" isSplitAllowed="true" > </band> </title> <pageHeader> <band height="0" isSplitAllowed="true" > </band> </pageHeader> <columnHeader> <band height="0" isSplitAllowed="true" > </band> </columnHeader> <detail> <band height="96" isSplitAllowed="true" > <textField isStretchWithOverflow="true" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="0" y="0" width="535" height="18" key="textField" positionType="Float" isPrintWhenDetailOverflows="true"/> <box> <topPen lineWidth="0.25" lineStyle="Solid"/> <leftPen lineWidth="0.25" lineStyle="Solid"/> <bottomPen lineWidth="0.25" lineStyle="Solid"/> <rightPen lineWidth="0.25" lineStyle="Solid"/></box> <textElement verticalAlignment="Middle"> <font fontName="Times New Roman" pdfFontName="Times-Roman" size="10" isItalic="false" isPdfEmbedded ="true"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{1}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="0" y="18" width="535" height="18" key="textField" positionType="Float" isPrintWhenDetailOverflows="true"/> <box> <topPen lineWidth="0.25" lineStyle="Solid"/> <leftPen lineWidth="0.25" lineStyle="Solid"/> <bottomPen lineWidth="0.25" lineStyle="Solid"/> <rightPen lineWidth="0.25" lineStyle="Solid"/></box> <textElement verticalAlignment="Middle"> <font fontName="Times New Roman" pdfFontName="Times-Roman" size="10" isItalic="false" isPdfEmbedded ="true"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{2}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="0" y="36" width="535" height="18" key="textField-1" positionType="Float" isRemoveLineWhenBlank="true" isPrintInFirstWholeBand="true" isPrintWhenDetailOverflows="true"/> <box> <topPen lineWidth="0.25" lineStyle="Solid"/> <leftPen lineWidth="0.25" lineStyle="Solid"/> <bottomPen lineWidth="0.25" lineStyle="Solid"/> <rightPen lineWidth="0.25" lineStyle="Solid"/></box> <textElement verticalAlignment="Middle"> <font fontName="Times New Roman" pdfFontName="Times-Roman" size="10" isItalic="false" isPdfEmbedded ="true"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{3}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="0" y="54" width="535" height="18" key="textField-2" positionType="Float" isPrintInFirstWholeBand="true" isPrintWhenDetailOverflows="true"/> <box> <topPen lineWidth="0.25" lineStyle="Solid"/> <leftPen lineWidth="0.25" lineStyle="Solid"/> <bottomPen lineWidth="0.25" lineStyle="Solid"/> <rightPen lineWidth="0.25" lineStyle="Solid"/></box> <textElement textAlignment="Justified" verticalAlignment="Middle"> <font fontName="Times New Roman" pdfFontName="Times-Roman" size="10" isItalic="false" isPdfEmbedded ="true"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{4}]]></textFieldExpression> </textField> </band> </detail> <columnFooter> <band height="0" isSplitAllowed="true" > </band> </columnFooter> <pageFooter> <band height="0" isSplitAllowed="true" > </band> </pageFooter> <summary> <band height="0" isSplitAllowed="true" > </band> </summary></jasperReport> Link to comment Share on other sites More sharing options...
gulasbot Posted September 15, 2008 Author Share Posted September 15, 2008 Opps, images dont show :( Link to comment Share on other sites More sharing options...
ktalarico Posted February 12, 2009 Share Posted February 12, 2009 I am having this problem too. 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