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

dgangstaz

Members
  • Posts

    21
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Posts posted by dgangstaz

  1. All your text should be passed as parameters from your application to the ireports design file.

    Example: if you're displaying text 'Demo text', create a parameter 'demo' to be displayed instead, and from your application pass parameters map with ('demo', 'Demo text')

  2. You can define parameter expressions to be passed to the subreport, and then process the value in the subreport (caompare or display whatever you want).
  3. For subreports, if you are using a datasource connection type, set the expresion to:

    new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{list_field})

     

    In the subreport, set the fields according to your master recordings list passed to the subreport.

  4. I use the following code the generate a pdf to output stream from a custom datasource. A also load directelly the compiled .jasper file so you don't have to compile the .jrxml file for each run.

     

    is = ReportConstants.getPdfJasperFilename();

    ds = new JRBeanCollectionDataSource(getSortedBean());

     

    try {

    JasperReport jasperReport = (JasperReport) JRLoader.loadObject(is);

    JasperPrint jasperPrint =

    JasperFillManager.fillReport(jasperReport, parameters, ds);

    JasperExportManager.exportReportToPdfStream(jasperPrint, os);

    } catch (JRException e) {

    e.printStackTrace();

    logger.error(e);

    }

  5. - Am o aplicatie web dezvoltata in Oracle ADF, cu deploy in Weblogic

    - Vreau sa folosesc in generarea raportului PDF caractere speciale(romanesti, etc.)

    - Cum configurez eu in Java un font care accepta toate aceste caractere speciale?

     

    Multumesc,

    Simina Dorin

×
×
  • Create New...