Jump to content
Changes to the Jaspersoft community edition download ×

How to print field values horizontally


nehaindia

Recommended Posts

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

Link to comment
Share on other sites

  • Replies 12
  • Created
  • Last Reply

Top Posters In This Topic

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

Link to comment
Share on other sites

  • 1 year later...

    

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
Link to comment
Share on other sites

  • 10 months later...

 Hi,

I am using such environment:

 

Product Version: Jaspersoft iReport Designer 4.5.0

Java: 1.6.0_25; Java HotSpot 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
 
 
 
 
 

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 2 months later...
  • 6 months later...

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.

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 1 year later...
  • 3 months later...
  • 6 months later...

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.

Link to comment
Share on other sites

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