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

0

I'm trying to print only the sales you want with jasperSoft reports, only you're printing all the sales and all the products you then added into other sales.

jasperSoft report image

impress.java

StringrelatorioStream=servlet.getRealPath(this.caminhoRelatorio);parametros.put("foto", caminhofoto);
        JasperPrint print = JasperFillManager.fillReport(relatorioStream, this.parametros, connection);
    
asked by anonymous 21.02.2018 / 04:14

1 answer

1

Dear, how are you reporting the data to the report? JavaBeans? Direct Bank Research? how are the data being reported? Add this information if it is 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 Where clause in SQL by telling the number of the sale and did not do the proper Joins in your query with the items in the note. Then Post more details

    
21.02.2018 / 13:43