ibedini Posted August 31, 2016 Share Posted August 31, 2016 Hello,I want to hide/exclude pageHeader band when the export format is html or pdf.I used the sintax <property name="net.sf.jasperreports.export.html.exclude.key.element"/> but this keep the pageHeader band with white space.Is there any formula can I put in "print when expression" of pageHeader band?I need a formula like this: if (exportFormat.equals("html") || exportFormat.equals("pdf")) false else true Link to comment Share on other sites More sharing options...
hozawa Posted September 1, 2016 Share Posted September 1, 2016 I just created a variable for the export type. In my front end page where report export type is selected, I just added this parameter to the URL on the report. Link to comment Share on other sites More sharing options...
ibedini Posted September 1, 2016 Author Share Posted September 1, 2016 I use visualize.js. For export I use the following javascript function:window.customExport = function(format) { report.run( function(){ report.export({ outputFormat: format }) .done(function (link) { window.open(link.href); // open new window to download report }) .fail(function(err) { alert(err); }); } ) .fail(function(err) { alert(err); }); }; How can I pass a parameter like you suggested? Link to comment Share on other sites More sharing options...
horseman Posted November 21, 2016 Share Posted November 21, 2016 This syntax works fine for me to exclude title and pagefooter bands on pdf export.<property name="net.sf.jasperreports.export.pdf.exclude.origin.band.1" value="title"/><property name="net.sf.jasperreports.export.pdf.exclude.origin.band.2" value="pageFooter"/> 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