allenmvt.edu Posted February 24, 2010 Share Posted February 24, 2010 Is there a way to dynamically print headers for PDF but not for Excel? I'm assuming i would use a "pint when" expression, but i dont know what to evaluate to determine if it PDF or Excel. Thanks Link to comment Share on other sites More sharing options...
mrcaffeine Posted February 25, 2010 Share Posted February 25, 2010 The Print When expression is global and gets applied to the JasperPrint object which is the source for all exporters. Nevertheless there is way to configure hiding bands for output formats by setting report properties. For example to hide the pageHeader only in excel you could set a global report property net.sf.jasperreports.export.xls.exclude.origin.band.1=pageHeader Please refer the JasperReports Configuration Refernce for further details: http://jasperreports.sourceforge.net/config.reference.html on net.sf.jasperreports.export.{format}.exclude.origin.{suffix}.{arbitrary_name}. Post Edited by mrcaffeine at 25/02/2010 08:58 AM Link to comment Share on other sites More sharing options...
allenmvt.edu Posted February 26, 2010 Author Share Posted February 26, 2010 Thanks ... i'll give it a shot. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now