Jump to content

Primeiro elemento do JRBeanCollectionDataSource() não aparece na tabela do relatório


preta2012

Recommended Posts

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

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Google Translate of the Portuguese:

First element of JRBeanCollectionDataSource () does not appear in the report table

Hello 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...