jlabuelo Posted March 7, 2018 Share Posted March 7, 2018 Hello allWe are using Jasper Report Studio v6.3.1. We have built a simple report with a jrxml file that produces an A7 document with two pages, the first of all with a BarCode and the second one with a QR code.The report only receives a Parameter called "Code" and must produce the barcode and the QRcode with the value of this parameter. The issue we are having is that we are able to get the report generated, but the size of the barcode image and qr image are two small and no matter which values we assign to the with and height of the elements, size does not change.Dont know if it is possible to attach the jrxml as example but the definition is this one<?xml version="1.0" encoding="UTF-8"?><!-- Created with Jaspersoft Studio version 6.3.1.final using JasperReports Library version 6.3.1 --><!-- 2018-03-07T09:19:57 --><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="Blank_A4" pageWidth="297" pageHeight="210" orientation="Landscape" columnWidth="257" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="c1155262-8736-4962-bc0f-6da921c56707"> <property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/> <property name="com.jaspersoft.studio.unit." value="pixel"/> <property name="com.jaspersoft.studio.unit.pageHeight" value="pixel"/> <property name="com.jaspersoft.studio.unit.pageWidth" value="pixel"/> <property name="com.jaspersoft.studio.unit.topMargin" value="pixel"/> <property name="com.jaspersoft.studio.unit.bottomMargin" value="pixel"/> <property name="com.jaspersoft.studio.unit.leftMargin" value="pixel"/> <property name="com.jaspersoft.studio.unit.rightMargin" value="pixel"/> <property name="com.jaspersoft.studio.unit.columnWidth" value="pixel"/> <property name="com.jaspersoft.studio.unit.columnSpacing" value="pixel"/> <parameter name="prescription_number" class="java.lang.String"/> <queryString> <![CDATA[]]> </queryString> <detail> <band height="125" splitType="Stretch"> <componentElement> <reportElement x="0" y="0" width="260" height="120" uuid="058b1c33-afbf-4bdf-aba1-07162d52a7ca"/> <jr:barbecue xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" type="Code128" drawText="true" checksumRequired="false" evaluationTime="Report"> <jr:codeExpression><![CDATA[$P{prescription_number}]]></jr:codeExpression> </jr:barbecue> </componentElement> </band> <band height="125"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> <componentElement> <reportElement x="0" y="10" width="260" height="108" isPrintInFirstWholeBand="true" uuid="83fee01a-820b-48b5-8c94-9176eeb9571d"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> </reportElement> <jr:QRCode xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" evaluationTime="Report"> <jr:codeExpression><![CDATA[$P{prescription_number}]]></jr:codeExpression> </jr:QRCode> </componentElement> </band> </detail></jasperReport>[/code]Is there any way we can adjust the size of the image of the barcode and qrcode??Thanks a lot Link to comment Share on other sites More sharing options...
Duggu09 Posted March 7, 2018 Share Posted March 7, 2018 Hi Jlabuelo,I think the Bar code size and QR code are good. They are in a same size as you are expecting. I see the page size of the reports you defined is small[your page width = 297] so you will see the complete report only of that width.If you are looking for normal A4 size report please increase the width of the report[width:595 height;842]. Thanks! 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