split detail bound into two columns

when i split detail bound to two columns and print order is vertical the data can show this sort data from left to right as 
1       4


2      5


3      6

but i need data to sort from right to left in column as this 

4      1

5      2 

6       3 

alimahran666's picture
Joined: Oct 30 2018 - 4:29am
Last seen: 1 year 1 month ago

1

alimahran666 - 3 years 11 months ago

6 Answers:

Have you already tried to set the Report-Property "ColumnDirection" to "RightToLeft" instead of the default one "LeftToRight" ?

hth+ regards

C-Box

C-Box's picture
24031
Joined: Jul 19 2006 - 5:58pm
Last seen: 3 weeks 6 days ago

not found proberty ColumnDirection in detail bound and the report haven,t accept this proberty

can u tell which place can add  this proberty

alimahran666's picture
Joined: Oct 30 2018 - 4:29am
Last seen: 1 year 1 month ago

Well I wrote at "REPORT - LEVEL" not at band level... so see here:

 

http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/des...

hth + regards

C-Box

C-Box's picture
24031
Joined: Jul 19 2006 - 5:58pm
Last seen: 3 weeks 6 days ago

thank you more for ur answer

bu can u tell me how can but rowDirection to RTL

as column Direction  RTL

alimahran666's picture
Joined: Oct 30 2018 - 4:29am
Last seen: 1 year 1 month ago

Well I just tried it out... works fine:

<?xml version="1.0" encoding="UTF-8"?>
<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="RightToLeft" language="groovy" columnCount="2" columnDirection="RTL" pageWidth="595" pageHeight="842" columnWidth="277" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="f6df8c7d-9bf5-4eed-9361-eb7e1f75d5e4">
    <property name="ireport.zoom" value="1.0"/>
    <property name="ireport.x" value="0"/>
    <property name="ireport.y" value="0"/>
    <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="44" splitType="Stretch">
            <textField>
                <reportElement x="29" y="0" width="249" height="20" uuid="217a07db-0379-41f2-8724-fc68379da58f"/>
                <textFieldExpression><![CDATA["RecordNumber: "+ $V{REPORT_COUNT}]]></textFieldExpression>
            </textField>
        </band>
    </detail>
    <columnFooter>
        <band height="45" splitType="Stretch"/>
    </columnFooter>
    <pageFooter>
        <band height="54" splitType="Stretch"/>
    </pageFooter>
    <summary>
        <band height="42" splitType="Stretch"/>
    </summary>
</jasperReport>

 

Or is this not what you want?

hth

C-Box

C-Box's picture
24031
Joined: Jul 19 2006 - 5:58pm
Last seen: 3 weeks 6 days ago

thank u  very very much 

my problem is solved

alimahran666's picture
Joined: Oct 30 2018 - 4:29am
Last seen: 1 year 1 month ago
Feedback