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

abdul_5

Members
  • Posts

    1
  • Joined

  • Last visited

abdul_5's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. My Application using Jasper Reports to generate and print reports. Cash Drawer is connected to that POS Printer and that should be triggered on Print. Is there any settings I need to configure in Jasper Reports. Here is my Code sample which prints the bill. PrintRequestAttributeSet printRequestAttributeSet = new HashPrintRequestAttributeSet(); printRequestAttributeSet.add(MediaSizeName.ISO_A4); PrintServiceAttributeSet printServiceAttributeSet = new HashPrintServiceAttributeSet(); printServiceAttributeSet.add(new PrinterName(printerName, null)); JRPrintServiceExporter exporter = new JRPrintServiceExporter(); exporter.setExporterInput(new SimpleExporterInput(jasperPrint)); SimplePrintServiceExporterConfiguration configuration = new SimplePrintServiceExporterConfiguration(); configuration.setPrintRequestAttributeSet(printRequestAttributeSet); configuration.setPrintServiceAttributeSet(printServiceAttributeSet); configuration.setDisplayPageDialog(false); exporter.setConfiguration(configuration); exporter.exportReport();
×
×
  • Create New...