How can I suppress page headers and footers when exporting to XLS?
When exporting a document, we can filter out content using an ExporterFilter instance that we pass as value for the JRExporterParameter.FILTER exporter parameter. But in case no filter instance is passed in, the exporter searches for some configuration properties with a given prefix, both at report level (exporter hints) and globally, in order to decide if a default exporter filter instance should be created on-the-fly and used internally, when exporting the current document. If created, this default exporter filter will filter out content from the exported document based on element origin information. Elements present in JasperReports generated documents keep information about their origin. The origin of an element is defined by its parent section in the initial report template, and optionally the name of the group and/or subreport that the element originated from.