How to print field values horizontally

0

Hi ,

I am new to ireport, I want to print my field values horizontally (by default they are getting printed vertically). I palced placed a field in detail section , now insted of getting them printed :

aa

bb

cc

dd

.

.

.

.

i want the values to be printed like:

aa       bb      cc      dd.....

I am using ireport 3.0.0

Please guide me .

 

---

Thanks in advance

Best Regards

Neha

nehaindia's picture
Joined: Nov 2 2009 - 9:07pm
Last seen: 9 years 6 months ago

9 Answers:

0

There is a report property called Print Order. This has effects when you have several columns.

Using iReport 3.6.1 the new List component is now allowed to print records horizontally which is a great improvement in the capabilities of JasperReports.

 

Giulio

giulio's picture
20736
Joined: Jan 2 2007 - 4:15pm
Last seen: 3 months 1 week ago
0

Hi,

Thanks for the reply.

 

But my problem is to show the values in the manner i have shown in my prevoius post.

Print order option (as i have read and understood) would only make the printer to print the column in vertical or horizontal order.

Is there any other way to do the same.

Thanks

Best Regards

Neha

nehaindia's picture
Joined: Nov 2 2009 - 9:07pm
Last seen: 9 years 6 months ago
0

a) List component (as said)

b) Crosstab (even if this is not an optimal solution).

 

Giulio

giulio's picture
20736
Joined: Jan 2 2007 - 4:15pm
Last seen: 3 months 1 week ago
0

    

Hi
I have a same question 
I want to print my field values horizontally (by default they are getting printed vertically). I palced placed a field in detail section , now insted of getting them printed :
aaa
bbb
ccc
ddd
..
.
.
.
i want the values to be printed like:
aaa     bbb      ccc      ddd.....
 
I am using ireport 4.0.0
I am searching so Manny sites but i have no correct solution. 
Please guide me .
 
 
 Thanks<br>
venu
venu08's picture
-11
Joined: Apr 4 2011 - 8:56pm
Last seen: 8 years 1 month ago

Go to report properties(click on the top of the report in no band reason)
1.than go to column
2.change the print order Vertical to Horizontal
3.now give the columns value (i.e.- how many horizontal column u wants. after that many columns , rest values will come to next line )
I hope this will help u.

anand.p - 6 years 6 months ago
0

 Hi,

I am using such environment:

 

Product Version: Jaspersoft iReport Designer 4.5.0

Java: 1.6.0_25; Java HotSpot(TM) Client VM 20.0-b11

System: Windows 7 version 6.1 running on x86; Cp1251; uk_UA (ireport)       

 

And I also have the asame problem... I have a List element which print elements vertically: 

 

aaa
bbb
ccc
ddd
..
.
.
.
and I want the values to be printed like:
aaa     bbb      ccc      ddd.....
 
My report have only one column, so "Print Order" propety does not resolve my problem.
Now I see some workarounds:
1. Changing report dynamically and adding each element of the list as as a new column on java side.
2. Changing report dynamically and adding each element of the list as as a new column on jasper.
3. Write some new List component and use it for horizontal prinitng.
 
Maybe iReport 4.5 already have such component (with horizontal printing)?
 
Does anybody know anythink about this? 
 
Thanks,
Ihor
 
 
 
 
 

 

ikruk's picture
1
Joined: Feb 1 2012 - 12:30am
Last seen: 7 years 3 months ago
1

I'm confused by your statement that your report only has one column (your reason that just changing the print order won't work), yet you are clearly showing that you want your output to be in what I would normally consider to be multiple columns.  So why aren't you just changing the number of columns and printing horizontally?  I've attached three versions of the same report that do exactly that:  vertical one column, vertical six columns, and horizontal six columns.

Carl

cbarlow3's picture
1387
Joined: Mar 4 2010 - 8:59am
Last seen: 6 days 2 hours ago

Can I see the files ?

deepakgm - 5 years 1 week ago

where did you attach these files.. ?

ray_lukas - 4 years 9 months ago
0
Code:
hi all i want multiplefields to be printed in a horizental way.
 
how to do that </td></tr></tbody></table>
kcsekhar25's picture
Joined: Apr 24 2011 - 7:00am
Last seen: 2 months 3 weeks ago
5

Go to report properties(click on the top of the report in no band reason)
1.than go to column
2.change the print order Vertical to Horizontal
3.now give the columns value (i.e.- how many horizontal column u wants. after that many columns , rest values will come to next line )

 

I hope this will help u.

anand.p's picture
102
Joined: Oct 22 2012 - 1:51am
Last seen: 1 year 3 months ago
1

Hello,

You'll need to use the Jasper element called "Crosstab".

After you drag a Crosstab element onto your report design, you'll be prompted to select a data source and to indicate which data points are for the columnar groups and row groups. (This will take a bit of experimenting depending on your data set.)

Be sure to give enough horizontal space to the Crosstab. By default, the Crosstab only displays a small width, which means horizontal columns get bumped down the page rather than repeated horizontally as expected.

I hope that helps.

groxli's picture
43
Joined: Jan 11 2014 - 12:29am
Last seen: 2 years 6 months ago
Feedback
randomness