Jump to content

Help setGroupHeader/setGroupFooter deprecated


leaoas

Recommended Posts

Hello!

I'm migrating some reports from JasperReports 2.0.2 to 3.7.4.

Some of them create and define group header and footer programmatically.

Example:

             JRDesignGroup myGroup = new JRDesignGroup();

            JRDesignBand myGroupHeader = new JRDesignBand();
            ...
            JRDesignBand myGroupFooter = new JRDesignBand();
            ...
            myGroup.setGroupHeader(myGroupHeader);
            myGroup.setGroupFooter(myGroupFooter);

 

The methods setGroupHeader and setGroupFooter are deprecated.

Javadoc only says that they were replaced by JRBaseGroup.getGroupHeaderSection() and JRBaseGroup.getGroupFooterSection().

I'm not seeing how I can set a group header/footer after calling getGroupHeaderSection/getGroupFooterSection.

Someone has an example?

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

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