Jump to content
We've recently updated our Privacy Statement, available here ×

print a report with dot matrix printer


borni

Recommended Posts

hello
I use this code to print directly without going through the dialog a statement made by iReport.
this code it works well with a inkjet printer, but not with a dot matrix printer.

someone can help me
thank you.

code:

Code:
 //fileXml File.jrxmlJasperPrint jasperPrint = fillReports(fileXml);                ByteArrayOutputStream pdfReport = new ByteArrayOutputStream();                JRPdfExporter exporter = new JRPdfExporter();                exporter.setParameter(JRXlsExporterParameter.JASPER_PRINT, jasperPrint);                exporter.setParameter(JRXlsExporterParameter.OUTPUT_STREAM, pdfReport);                exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);     JasperPrintManager.printReport(jasperPrint, false);                          exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PAGE_DIALOG, Boolean.FALSE);                exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PRINT_DIALOG, Boolean.FALSE);                exporter.exportReport();
Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 years later...

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...