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

Determining when report is being exported to _________


dogfuel

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

The creation of the JasperPrint object and the export to the desired format happen at different times. At the time that the print when expression is evaluated, I don't think the export format is really decided yet.

The option you can use is to leverage the jasperreports properties setting to exclude the band for the specific output...this provides the appropriate hint to the exporter.

See the net.sf.jasperreports.export.{format}.exclude.origin.{suffix}.{arbitrary_name} setting. There is also a keep.first version that allows you to eliminate the band, except for the first one so that you can show the column header and page header bands only once in excel output.

http://jasperreports.sourceforge.net/config.reference.html#net.sf.jasperreports.export.{format}.exclude.origin.{suffix}.{arbitrary_name}

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