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

enderfake

Members
  • Posts

    1
  • Joined

  • Last visited

enderfake's Achievements

Newbie

Newbie (1/14)

  • First Post Rare
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. I'm having the same exact problem. Looking around I found this on the forums... By: jj1978 - jj1978 RE: Using portrait and landscape in single report 2006-05-21 18:18 Yes it is possible! eg: My report page 1 (jr1) is portrait and page 2 (jr2) landscape. JasperReport jr1 = (JasperReport)JRLoader.loadObject( ... ); JasperReport jr2 = (JasperReport)JRLoader.loadObject( .... ); JREmptyDataSource ds = new JREmptyDataSource( 1 ); JasperPrint print1 = JasperFillManager.fillReport( jr1, new HashMap(), ds ); ds.moveFirst(); JasperPrint print2 = JasperFillManager.fillReport( jr2, new HashMap(), ds ); List l = new ArrayList(); l.add( print1 ); l.add( print2 ); JRPdfExporter exp = new JRPdfExporter(); exp.setParameter ( JRExporterParameter.JASPER_PRINT_LIST, l ); exp.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, SAVE_LOCATION ); exp.exportReport(); I cannot seem to get this to work with JRPrintServiceExporter as of yet for actual printing (it prints only the first jasperReport, then fails to print the rest in the list), however you might have some luck with it. If you find another solution or someone can help it would be much appreciated. Thanks.
×
×
  • Create New...