Jump to content
JasperReports Library 7.0 is now available ×

i18n in subreport


2004 IR Help

Recommended Posts

By: ithaque - ithaque

i18n in subreport

2005-01-05 09:13

hi,

 

I'd like to translate the textfields in my subreport using the same JRParameter.REPORT_RESOURCE_BUNDLE as my master report.

 

The ResourceBundle does not seem to be passed to my subreport.

 

How can I manage with ? :(

Anyone did it ? :D

 

Thanks.

 

Ithaque.

 

 

 

 

By: flouka - flouka

RE: i18n in subreport

2005-01-20 06:58

hi,

 

You have to pass the parameter from the master report to the sub one:

 

<subreportParameter name="REPORT_RESOURCE_BUNDLE">

<subreportParameterExpression><![CDATA[$P{REPORT_RESOURCE_BUNDLE}]]></subreportParameterExpression>

</subreportParameter>

<subreportParameter name="REPORT_LOCALE">

<subreportParameterExpression><![CDATA[$P{REPORT_LOCALE}]]></subreportParameterExpression>

</subreportParameter>

Link to comment
Share on other sites

  • 3 years later...
  • Replies 2
  • Created
  • Last Reply

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