title: Exporting jasper report to zebra printer not printing it completely
body: <p>I have the following code for printing an invoice to zt410-300dpi printer:</p>
  
  <pre><code>private static void jasperPrint56(JasperPrint jasperPrint, String printerName) throws JRException, IOException {
      PrinterJob job = PrinterJob.getPrinterJob();
  
      PrintRequestAttributeSet printRequestAttributeSet = new HashPrintRequestAttributeSet();
  
      PrintServiceAttributeSet printServiceAttributeSet = new HashPrintServiceAttributeSet(new PrinterName(printerName, null));
      PrintService[] printService = PrintServiceLookup.lookupPrintServices(null, printServiceAttributeSet);
      int selectedService = 0;
      try {
          job.setPrintService(printService[selectedService]);
  
      } catch (Exception e) {
  
          System.out.println(e);
      }
      JRPrintServiceExporter exporter = new JRPrintServiceExporter();
  
      exporter.setExporterInput(new SimpleExporterInput(jasperPrint));
  
      SimplePrintServiceExporterConfiguration configuration = new SimplePrintServiceExporterConfiguration();
      configuration.setPrintService(job.getPrintService());
      configuration.setPrintRequestAttributeSet(printRequestAttributeSet);
      configuration.setPrintServiceAttributeSet(printServiceAttributeSet);
      configuration.setDisplayPageDialog(false);
      configuration.setDisplayPrintDialog(false);
      exporter.setConfiguration(configuration);
      exporter.exportReport();
  }
  </code></pre>
  
  <p>This doesn't print the complete report and is only printing about 30% of it.
  In the jrxml file, I have defined page width and height as follows:</p>
  
  <p>pageWidth="288" pageHeight="432"</p>
  
  <p>Which is 4 in x 6 in after converting for 72 dpi of jasper</p>
  
  <p>In the printer properties, I have set the page size as 4x6 as well.</p>