Jump to content
Changes to the Jaspersoft community edition download ×

Field/Parameter in Header is repeating


ramandeep1980

Recommended Posts

Hi,

I am using following property of Jasper to print Page header only once in the Excel.

"net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.1"

Value :- pageHeader

Thus even though Page header is repeating n every page in PDF it is not repeating in Excel.

BUT

When I put Field or Parameter in header (for example:- if i want Date to be a column heading) they repeat twice  instead of once for whole report in Excel and behave normally or in expected manner in PDF.

This is weired tht they get repeated twice for whole report does not matter how long the report is.

Though they shud only get printed once when taking print out on Excel.Kindly help

Regards,

Raman Deep Singh

 

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • 2 weeks later...

Hi Lucian,

Thank you for replying.

I was able to solve it.Solution was not very appealing.

I just deleted the header field containing the parameter

and re created it and my problem got solved.

 

But it is weired that everything works fine till there is no field in the Header

containing parameter

And when u add parameter to the header Just delete and recreate it.

 

Regards,

Raman

Link to comment
Share on other sites

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