Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Jasper reports - main header repeated inside subreport - how to avoid it ?

Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear all,

I'm using IReport 4.0.2 to design a report which contains a subreport in its footer.

I need the header of the main report be repeated on each page, so I check the "Reprint header" checkbox.

The header will now printed on each page - so far so good.

Problem is, when the main report details are finished, then the subreport starts, and then I have two headers on each page, one that comes from the main report, and the second from the subreport.

But in the subreport I need only the header of the subreport; how can I accomplish this task ?

In other words, I need the main report header only for the mai report detail pages, and not for the main report subreport pages.

Any help would be greatly appreciated,

    Bookmark Topic Watch Topic
  • New Topic