Jump to content
We've recently updated our Privacy Statement, available here ×

Page header repeating twice


ankushchhabra

Recommended Posts

 Hi Everyone,

 

I want column header to appear on every page in report and only once in excel export. So i moved all the column textbox to page header band and set the following properties in jasperreport.properties.

net.sf.jasperreports.export.xls.exclude.origin.band.1=pageHeader

net.sf.jasperreports.export.xls.exclude.origin.band.2=pageFooter

net.sf.jasperreports.export.xls.exclude.origin.band.3=columnHeader

net.sf.jasperreports.export.xls.exclude.origin.band.4=columnFooter

net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.5=pageHeader

 

Now, I am facing an issue of page header getting repeated twice in excel export. First it occur on very first row and then repeat

itself on 50th row.

 

Thanks and Regards,

Anksuh

 
Link to comment
Share on other sites

  • 1 month later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

to get optimal Excel export we use following Properties  :

net.sf.jasperreports.export.xls.exclude.origin.band.1=pageHeader
net.sf.jasperreports.export.xls.exclude.origin.band.2=pageFooter
net.sf.jasperreports.export.xls.exclude.origin.keep.first.band.1=columnHeader
net.sf.jasperreports.export.xls.remove.empty.space.between.rows=true
net.sf.jasperreports.export.xls.remove.empty.space.between.columns=true
 
Regards
Joe

 

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