Jump to content

Recommended Posts

Posted

Hi,
I can't draw a datamatrix rotated by 90 degree. How can I achieve this?

The jasperstudio interface does not show any property to rotate the barcode, see this screenshot:

NessunaProprietaPerRuotare.PNG.070374f56cc203c0bd5c4cc3b811611a.PNG

Is the same of your? (I think "yes")

I can see only the field "shape", but none of the listed values cause to rotate the barcode, all tested.

I tryied to manually add the property to the jr:Datamatrix tag

orientation="left"[/code]

but it is ignored.
If I manually add the property orientation="90" to the code it is removed when I save the jrxml files (yes, it changes my source code).

 

I'm using TIBCO JasperSoft 6.1.0 final, with standard libs (barcode4J 2.1.0, itext 2.1.7 s2)

This is the source code of my test report (nothing special, it contains only a datamatrix)

<?xml version="1.0" encoding="UTF-8"?><!-- Created with Jaspersoft Studio version 6.1.0.final using JasperReports Library version 6.1.0  --><!-- 2015-06-15T13:28:33 --><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="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="9dfc354f-acd7-4731-91a6-97e1d2dfd8d2">    <property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>    <queryString>        <![CDATA[]]>    </queryString>    <background>        <band splitType="Stretch"/>    </background>    <title>        <band height="79" splitType="Stretch"/>    </title>    <pageHeader>        <band height="35" splitType="Stretch"/>    </pageHeader>    <columnHeader>        <band height="61" splitType="Stretch"/>    </columnHeader>    <detail>        <band height="125" splitType="Stretch">            <componentElement>                <reportElement x="90" y="10" width="40" height="90" uuid="4c5a60b2-1b88-4af6-9124-7f0e259e70fa"/>                <jr:DataMatrix xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" shape="force-none">                    <jr:codeExpression><![CDATA["123456789"]]></jr:codeExpression>                </jr:DataMatrix>            </componentElement>        </band>    </detail>    <columnFooter>        <band height="45" splitType="Stretch"/>    </columnFooter>    <pageFooter>        <band height="54" splitType="Stretch"/>    </pageFooter>    <summary>        <band height="42" splitType="Stretch"/>    </summary></jasperReport>[/code]

 

I'm searching a way to put in one of my report a datamatris rotated 90 degree to the left.
Any help valued.

 

 
  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted

This code was working, correctly rotating the barcode, in Jaspersoft 5.6.0

            <componentElement>                <reportElement key="" mode="Transparent" x="509" y="470" width="76" height="128" backcolor="#FFFFFF" uuid="534133d8-3aeb-4573-8baa-d3941ce06433">                    <property name="local_mesure_unitwidth" value="mm"/>                    <property name="local_mesure_unitheight" value="mm"/>                    <property name="com.jaspersoft.studio.unit.width" value="mm"/>                </reportElement>                <jr:DataMatrix 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" shape="force-rectangle">                    <jr:codeExpression><![CDATA["1845454"]]></jr:codeExpression>                </jr:DataMatrix>            </componentElement>[/code]

 

I'm planning the downgrade.

Any hint to mantains the 6.1.0 (current version)?

Posted

I installed again the version 5.6.0 and I see the property I was searching for!!

is this a bug of the new version (6.1.0)?

How to correct?

/sites/default/files/images/PROPRIETA5_6_0.PNG

  • 11 months later...
Posted

Hello mcuccia,

Have you resloved this issue now? i meet a similar issue, the property "orientation=90" of barcode always cannot work correctly. Could you help provide some info on this problem?

Thank you

Candice

 

  • 3 weeks later...

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