How to print only one sale with your products using jasperReport?

Asked

Viewed 140 times

0

I am trying to print only the sale you want with reports Jaspersoft, only that is printing all sales and all products that then added on other sales.

Image of the report inserir a descrição da imagem aqui

java imprint.

        String relatorioStream = servlet.getRealPath(this.caminhoRelatorio);

        parametros.put("foto", caminhofoto);
        JasperPrint print = JasperFillManager.fillReport(relatorioStream, this.parametros, connection);

1 answer

1


My dear, how are you informing the data to the report ? Javabeans ? Direct search in the Database ? how the data is being informed. Add this information if via SQL post the code with the query.

Reading your description if it was via SQL I would say that you did not specify the clause Where in SQL stating the number of the sale and did not make the proper Joins in your query with the items of the note. Then Poste more details

  • That’s right, I wasn’t putting the Where clause, thanks

Browser other questions tagged

You are not signed in. Login or sign up in order to post.