split detail bound into two columns

Jaspersoft Community 'Read-Only' as of July 8, 2022

Transition to New TIBCO Community Just Weeks Away

You can still search, review wiki content, and review discussions in read-only mode. Please email community@tibco.com with questions or issues requiring TIBCO review or response.

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: 3 months 1 week ago

1

alimahran666 - 2 years 9 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
11692
Joined: Jul 19 2006 - 5:58pm
Last seen: 2 months 3 weeks 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: 3 months 1 week 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
11692
Joined: Jul 19 2006 - 5:58pm
Last seen: 2 months 3 weeks 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: 3 months 1 week 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
11692
Joined: Jul 19 2006 - 5:58pm
Last seen: 2 months 3 weeks ago

thank u  very very much 

my problem is solved

alimahran666's picture
Joined: Oct 30 2018 - 4:29am
Last seen: 3 months 1 week ago
Feedback