Jump to content
We've recently updated our Privacy Statement, available here ×

some offset at x-axis occurs while genrating the pdf.


joker5567

Recommended Posts

<?xml version="1.0" encoding="UTF-8"?><!-- Created with Jaspersoft Studio version 6.3.1.final using JasperReports Library version 6.3.1  --><!-- 2019-07-05T09:22:50 --><jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="skulabel" pageWidth="123" pageHeight="34" orientation="Landscape" columnWidth="123" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" uuid="472c83f6-2bbe-4d54-8cf0-45b16199b5b5">    <property name="com.jaspersoft.studio.unit." value="mm"/>    <property name="com.jaspersoft.studio.data.defaultdataadapter" value="DataAdapter.xml"/>    <property name="com.jaspersoft.studio.data.sql.tables" value=""/>    <field name="SKU_CODE" class="java.lang.String"/>    <field name="ITEM_NAME" class="java.lang.String"/>    <field name="SERIAL_NO" class="java.lang.String"/>    <field name="QRCODE" class="java.lang.String"/>    <background>        <band splitType="Stretch"/>    </background>    <detail>        <band height="34" splitType="Stretch">            <textField pattern="" isBlankWhenNull="true">                <reportElement x="36" y="3" width="77" height="8" uuid="59660889-2eef-4e05-9332-057215dc6f28"/>                <textElement>                    <font fontName="Arial" size="5" isBold="true"/>                </textElement>                <textFieldExpression><![CDATA[$F{SKU_CODE}]]></textFieldExpression>            </textField>            <textField pattern="" isBlankWhenNull="true">                <reportElement isPrintRepeatedValues="false" x="36" y="23" width="77" height="8" uuid="f99eba4e-c5c5-4e8a-ba9a-57c38e27ed4a"/>                <textElement>                    <font fontName="Arial" size="5" isBold="true"/>                </textElement>                <textFieldExpression><![CDATA[$F{SERIAL_NO}]]></textFieldExpression>            </textField>            <textField pattern="" isBlankWhenNull="true">                <reportElement x="36" y="12" width="77" height="8" uuid="139e7ff6-e7e1-4c16-9b3a-f1d46b78c550"/>                <textElement>                    <font fontName="AR" size="4" isBold="true"/>                </textElement>                <textFieldExpression><![CDATA[$F{ITEM_NAME}]]></textFieldExpression>            </textField>            <image>                <reportElement x="5" y="3" width="28" height="28" uuid="71576949-8385-4cc7-873f-a8bae4e35b2d">                    <property name="com.jaspersoft.studio.unit.width" value="mm"/>                    <property name="com.jaspersoft.studio.unit.height" value="mm"/>                </reportElement>                <imageExpression><![CDATA[com.google.zxing.client.j2se.MatrixToImageWriter.toBufferedImage(    new com.google.zxing.qrcode.QRCodeWriter().encode(        $F{QRCODE},        com.google.zxing.BarcodeFormat.QR_CODE, 350, 350    ))]]></imageExpression>            </image>        </band>    </detail></jasperReport>[/code]

while generating the pdf it will keep "creating some offset" which I couldn't find where is the problem occurs.

image:https://imgur.com/9PFWLYn

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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