2005 IR Help Posted August 26, 2006 Share Posted August 26, 2006 By: ssitkgp - smithssitkgp This is strange! Plz HLP! 2004-05-05 04:32 Hi all! I want to have rectangular Box at the bottom right edge ofthe PDF getting printed and in every page. I have reduced both rightMargin and bottomMargin to "0" and then placed the Rectangle at the bottom right edge of the Page Footer. When I print the PDF the Acrobat Reader shows the rectangle at the exact place where I want it to appear but when I take out a printout it is a way up than that! Whatz the problem..Does the violates WYSIWYG ? Please have a look at the below design XML. <?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="MasterReport" columnCount="1" printOrder="Vertical" orientation="Portrait" pageWidth="595" pageHeight="900" columnWidth="515" columnSpacing="0" leftMargin="40" rightMargin="0" topMargin="50" bottomMargin="0" whenNoDataType="NoPages" isTitleNewPage="false" isSummaryNewPage="false"> <reportFont name="Arial_Normal" isDefault="true" fontName="Arial" size="12" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <reportFont name="Arial_Bold" isDefault="false" fontName="Arial" size="12" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica-Bold" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <reportFont name="Arial_Italic" isDefault="false" fontName="Arial" size="12" isBold="false" isItalic="true" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica-Oblique" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <reportFont name="Verdana_Normal11" isDefault="true" fontName="Verdana" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <reportFont name="Verdana_Bold11" isDefault="false" fontName="Verdana" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <reportFont name="Verdana_Italic11" isDefault="false" fontName="Verdana" size="11" isBold="false" isItalic="true" isUnderline="false" isStrikeThrough="false" pdfFontName="" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <reportFont name="Verdana_Normal" isDefault="true" fontName="Verdana" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <reportFont name="Verdana_Bold" isDefault="false" fontName="Verdana" size="9" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <reportFont name="Verdana_Italic" isDefault="false" fontName="Verdana" size="10" isBold="true" isItalic="true" isUnderline="false" isStrikeThrough="false" pdfFontName="" pdfEncoding="Cp1252" isPdfEmbedded="false"/> <parameter name="WorkingDir" isForPrompting="true" class="java.lang.String"/> <parameter name="ConditionSubreport" isForPrompting="true" class="dori.jasper.engine.JasperReport"/> <parameter name="ASubreport" isForPrompting="true" class="dori.jasper.engine.JasperReport"/> <parameter name="ConditionDataSource" isForPrompting="true" class="dori.jasper.engine.JRDataSource"/> <parameter name="SummaryDataSource" isForPrompting="true" class="dori.jasper.engine.JRDataSource"/> <parameter name="PrintSignature" isForPrompting="true" class="java.lang.String"/> <field name="City" class="java.lang.String"/> <group name="ConditionGroup" isStartNewColumn="false" isStartNewPage="false" isResetPageNumber="false" isReprintHeaderOnEachPage="false" minHeightToStartNewPage="60" > <groupExpression><![CDATA[ $F{City} ]]></groupExpression> <groupHeader> <band height="25"> <subreport isUsingCache="true"> <reportElement mode="Opaque" x="7" y="3" width="325" height="20" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="false" isRemoveLineWhenBlank="true" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="true"/> <subreportParameter name="City"> <subreportParameterExpression><![CDATA[$F{City}]]></subreportParameterExpression> </subreportParameter> <dataSourceExpression><![CDATA[$P{ConditionDataSource}]]></dataSourceExpression> <subreportExpression class="java.lang.String"><![CDATA[$P{WorkingDir}+"ConditionReport.jasper"]]></subreportExpression> </subreport> </band> </groupHeader> <groupFooter> <band height="0"> </band> </groupFooter> </group> <group name="AGroup" isStartNewColumn="false" isStartNewPage="false" isResetPageNumber="false" isReprintHeaderOnEachPage="false" minHeightToStartNewPage="60" > <groupExpression><![CDATA[ $F{City} ]]></groupExpression> <groupHeader> <band height="25"> <subreport isUsingCache="true"> <reportElement mode="Opaque" x="7" y="3" width="325" height="21" forecolor="#000000" backcolor="#FFFFFF" positionType="Float" isPrintRepeatedValues="false" isRemoveLineWhenBlank="true" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <subreportParameter name="City"> <subreportParameterExpression><![CDATA[$F{City}]]></subreportParameterExpression> </subreportParameter> <dataSourceExpression><![CDATA[$P{SummaryDataSource}]]></dataSourceExpression> <subreportExpression class="java.lang.String"><![CDATA[$P{WorkingDir}+"Summary.jasper"]]></subreportExpression> </subreport> </band> </groupHeader> <groupFooter> <band height="0"> </band> </groupFooter> </group> <background> <band height="0"> </band> </background> <title> <band height="0"> </band> </title> <pageHeader> <band height="0"> </band> </pageHeader> <columnHeader> <band height="0"> </band> </columnHeader> <detail> <band height="0"> </band> </detail> <columnFooter> <band height="0"> </band> </columnFooter> <pageFooter> <band height="25"> <rectangle radius="0" > <reportElement mode="Opaque" x="534" y="0" width="21" height="25" forecolor="#FF3333" backcolor="#FF3333" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <graphicElement stretchType="NoStretch" pen="Thin" fill="Solid" /> </rectangle> </band> </pageFooter> <summary> <band height="60"> <staticText> <reportElement mode="Opaque" x="7" y="10" width="124" height="41" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"> <printWhenExpression><![CDATA[new Boolean(new String($P{PrintSignature}).equalsIgnoreCase("yes"))]]></printWhenExpression> </reportElement> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font reportFont="Verdana_Normal" pdfFontName="VERDANA.TTF"/> </textElement> <text><![CDATA[signed for and on behalf of Vero Insurance Limited ABN 48 005 297 807 AFS Licence No: 230859]]></text> </staticText> <line direction="TopDown"> <reportElement mode="Opaque" x="137" y="48" width="132" height="0" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"> <printWhenExpression><![CDATA[new Boolean(new String($P{PrintSignature}).equalsIgnoreCase("yes"))]]></printWhenExpression> </reportElement> <graphicElement stretchType="NoStretch" pen="Thin" fill="Solid" /> </line> <staticText> <reportElement mode="Opaque" x="276" y="37" width="50" height="14" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"> <printWhenExpression><![CDATA[new Boolean(new String($P{PrintSignature}).equalsIgnoreCase("yes"))]]></printWhenExpression> </reportElement> <textElement textAlignment="Left" verticalAlignment="Middle" lineSpacing="Single"> <font reportFont="Verdana_Normal" pdfFontName="VERDANA.TTF"/> </textElement> <text><![CDATA[Examined]]></text> </staticText> <line direction="TopDown"> <reportElement mode="Opaque" x="332" y="48" width="50" height="0" forecolor="#000000" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"> <printWhenExpression><![CDATA[new Boolean(new String($P{PrintSignature}).equalsIgnoreCase("yes"))]]></printWhenExpression> </reportElement> <graphicElement stretchType="NoStretch" pen="Thin" fill="Solid" /> </line> </band> </summary> </jasperReport> 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