Jump to content
Changes to the Jaspersoft community edition download ×

How to print a subreport many times ?


2004 IR Help

Recommended Posts

By: mab - maborou

How to print a subreport many times ?

2004-12-09 07:50

 

Does someone know how to print a subreport many times? Please, let me know!!

 

thanks for all!!!

 

 

 

 

By: Giulio Toffoli - gt78

RE: How to print a subreport many times ?

2004-12-09 08:05

 

This is the rule. Perhaps you are doing a mistake...

 

Giulio

 

 

 

 

By: mab - maborou

RE: How to print a subreport many times ?

2004-12-09 08:12

I know what you say!! But, I need a subreport to be printed many times, for example I want the subreport toto.jasper to be printed 10 times in the main report titi.jasper with the same parameters.

 

 

 

 

By: Giulio Toffoli - gt78

RE: How to print a subreport many times ?

2004-12-09 08:48

What data you have to print in this subreport?

You can create a subreport "pre_toto.jasper" that print 10 times toto.jasper using as datasource expression in titi.jasper:

 

new JREmptyDataSource(10)

 

This will print 10 empty rows in pre_toto.jasper. If you pass all data that must be printed in toto.jasper as parameters to pre_toto.jasper, this parameters can be propagated to toto.jasper.

 

Do you have to print labels or similar ?

 

Giulio

 

 

 

 

 

 

By: mab - maborou

RE: How to print a subreport many times ?

2004-12-09 08:54

I'm gonna try it and i'll tell you tomorow!!

 

Thanks for all

 

 

 

 

By: Ivan - arivan

RE: How to print a subreport many times ?

2004-12-09 09:07

you can put the subreport in the detail band and do a query that repet 10 time something

 

it may work

 

 

 

 

By: mab - maborou

RE: How to print a subreport many times ?

2004-12-10 01:27

thank you for your help arivan, I think it's what I want

 

 

 

 

By: Giulio Toffoli - gt78

RE: How to print a subreport many times ?

2004-12-10 05:59

This is the same than using "new JREmptyDataSource(10)"

 

Giulio

 

 

 

 

By: mab - maborou

RE: How to print a subreport many times ?

2004-12-13 06:26

ok!!

 

Thanks for all

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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