0

Is there a built-in parameter in iReport/JasperReports Server that will allow me to hide a band when a report is displayed in JasperReports Server, but display the band when the report is printed? I don't want to display my report footers when the user is viewing reports on-screen in JasperReports Server.

Alex K
  • 22,315
  • 19
  • 108
  • 236
Lisa
  • 1,331
  • 1
  • 15
  • 27
  • You can add a report parameter and use the band's "Print When Expression". You can initialize this parameter from Java code when you print report or from the JR Server. – Alex K Jul 10 '12 at 11:00
  • Thanks, Alex. That sounds exactly like what I want to do. Do you know how I can initialize the parameter when printed? – Lisa Jul 10 '12 at 11:43
  • Which way are you using for printing the report (Java code or Print button in application, for example in MS Word)? – Alex K Jul 10 '12 at 11:44
  • We are printing from within the browser, or if the document is exported to Word or Adobe Acrobat, from there. – Lisa Jul 10 '12 at 12:12
  • I think that it will be easier to pass parameter from the JR Server in this case – Alex K Jul 10 '12 at 12:26

0 Answers0