Salve,

ho creato un file jasper contenente 3 subreport però non ho idea di come si caricano i dati all'interno dei subreport, suggerimenti?

il codice che utilizzo per caricare il report e in seguito visualizzarlo è il seguente :

codice:
 public void runReport2(String databaseName, String userName, String password, String reportFile, String empID) {
        try {
            


            Connection conn = connectDB(databaseName, userName, password);            
            Statement stmt = conn.createStatement();
            

            ResultSet rs = stmt.executeQuery(empID);            
            JRDataSource jrds = new JRResultSetDataSource(rs);
            
          
       

            String report = reportFile;
            File sourceFile = new File(report);
            JasperReport jasperReport4 = (JasperReport) JRLoader.loadObject(sourceFile);
            
            
            HashMap reportParam = new HashMap();
             
            
            JasperPrint jasperPrint2 = myJasperFillManager.fillReport(jasperReport4, reportParam, jrds);
            
            
            
           

            
        } catch (JRException ex) {
            Logger.getLogger(Report.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(Report.class.getName()).log(Level.SEVERE, null, ex);
        }


     

    }