Jump to content
JasperReports Library 7.0 is now available ×

Subreport empty


2004 IR Help

Recommended Posts

By: frenchc_44 - frenchc_44

Subreport empty

2005-04-12 15:22

I have some static text (copyright info) that I want to use in a subreport, so I can use it all over, in many different reports. Since I have no report data though, I don't think I should need to specify a Datasource. Unfortunately, if I don't, my subreport doesn't show. Is there another, more preferable way to do this?

 

Also, I may have misunderstood the quick reference. It seems to indicate the datasource expression is optional for the subreport.

 

 

 

 

By: stephan - rossouw

RE: Subreport empty

2005-04-13 02:01

Why dont you leave out the Datasource and set the connection to this:

$P{REPORT_CONNECTION}

The subreport should use the report's connection and your stuff will be desplayed.

 

 

 

 

By: frenchc_44 - frenchc_44

RE: Subreport empty

2005-04-13 05:55

Thanks for the info. That works too. I wish I knew why.

 

What is $P{REPORT_CONNECTION}? Didn't see it in the docs. Is there a guide for JR stashed away somewhere?

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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