Printing Labels with Dot Matrix

Hello There,

I’ve been trying this for a while before eventually coming here for expert advice.

We’ve a dot matrix printer Epson LQ-590. - Epson LQ-590 - Epson

The need is to print number of labels (number provided by user). The paper used is 89 MM * 36 MM. So, I designed a report for the same size with information needed. For now, I am testing with just trying to print 1 copy. The print does go through and it seems that its printing fine within a printable area. But, after printing the pointer moves certain index (skips 3 more papers) and stops at middle of the paper.

I am using following printer settings :

job = system.print.createPrintJob(event.source.parent.getComponent('Report Viewer'))
job.setOrientation(1)
job.setPrinterName("EPSON LQ-590 ESC/P 2 Ver 2.0")
job.setPageHeight(3)
job.setPageWidth(6)

job.setLeftMargin(0.00)
job.setTopMargin(0.00)
job.setBottomMargin(0.00)
job.setFitToPage(0)
job.setShowPrintDialog(0)
job.print()

Will really appreciate any help,
Thanks in advance

How did you calculate your page height and width (3x6 inches) from 89MM x 36MM? Three inches is more than double 36MM.

Its a result of trial and errors.

When I try putting,

job.setOrientation(1)
job.setPageHeight(1.41)
job.setPageWidth(3.5)

it prints something like this :

The printer I am expecting is something like this :

I’m not super familiar but if the calculations work but seem off on printers usually it is a resolution issue throwing it off.

What happens if you try a page height of 1 with top and bottom margins still set to 0?