preta2012 Posted March 19, 2020 Share Posted March 19, 2020 Olá pessoal.Estou a preencher uma tabela no meu report com um JRBeanCollectionDataSource. os dados são provenientes da base de dados. ao imprimir o report, imprime (-) o primeiro elemento da coleção. alguma ideia? public JasperPrint loadReport(String classPathDesignReport, List<RelatorioHorasProcessadasEmSAPBeans> fonteDados, String mes, int ano, String direccao) throws JRException, ClassNotFoundException, IOException, SQLException { JRAbstractBeanDataSource horasExtras = new JRBeanCollectionDataSource(fonteDados, false); System.out.println("n" + fonteDados);.....} Link to comment Share on other sites More sharing options...
djohnson53 Posted March 21, 2020 Share Posted March 21, 2020 Google Translate of the Portuguese:First element of JRBeanCollectionDataSource () does not appear in the report tableHello people.I am filling a table in my report with a JRBeanCollectionDataSource. the data comes from the database. when printing the report, print (-) the first element of the collection. Any idea? public JasperPrint loadReport (String classPathDesignReport, List <ReportedHoursProcessedEmSAPBeans> fontData, String mes, int ano, String direction) throws JRException, ClassNotFoundException, IOException, SQLException { JRAbstractBeanDataSource horasExtras = new JRBeanCollectionDataSource (dataData, false); System.out.println (" n" + dataSource); 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