# Printing Labels with Dot Matrix

**URL:** <https://forum.inductiveautomation.com/t/printing-labels-with-dot-matrix/56269>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [February 17, 2022, 5:21pm UTC](https://forum.inductiveautomation.com/t/printing-labels-with-dot-matrix/56269 "2022-02-17T17:21:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaushik.shah](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@kaushik.shah](https://forum.inductiveautomation.com/u/kaushik.shah)\
**Post date:** [February 17, 2022, 5:21pm UTC](https://forum.inductiveautomation.com/t/printing-labels-with-dot-matrix/56269/1 "2022-02-17T17:21:37Z")

</div>

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](https://www.epson.eu/products/printers/dot-matrix-printers/epson-lq-590#accessories)

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 :

```auto
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

---

<div class="post-metadata">

**Author:** ![Bryan\_Mason](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bryan_mason/32/30612_2.png) [@Bryan\_Mason](https://forum.inductiveautomation.com/u/Bryan_Mason)\
**Post date:** [February 17, 2022, 8:47pm UTC](https://forum.inductiveautomation.com/t/printing-labels-with-dot-matrix/56269/2 "2022-02-17T20:47:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![kaushik.shah](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@kaushik.shah](https://forum.inductiveautomation.com/u/kaushik.shah)\
**Post date:** [February 18, 2022, 1:32pm UTC](https://forum.inductiveautomation.com/t/printing-labels-with-dot-matrix/56269/3 "2022-02-18T13:32:55Z")

</div>

Its a result of trial and errors.

When I try putting,

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

```

it prints something like this :

 ![WhatsApp Image 2022-02-18 at 12.40.47 PM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/b/6bec2937c40e5642d2b4834648f0373ae04bb92c.jpeg)

The printer I am expecting is something like this :

 ![WhatsApp Image 2022-02-18 at 12.40.47 PM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/6/26c54f87901ecfe14bca7f76ea83ef56f10dea10.jpeg)

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [February 18, 2022, 3:14pm UTC](https://forum.inductiveautomation.com/t/printing-labels-with-dot-matrix/56269/4 "2022-02-18T15:14:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Bryan\_Mason](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bryan_mason/32/30612_2.png) [@Bryan\_Mason](https://forum.inductiveautomation.com/u/Bryan_Mason)\
**Post date:** [February 18, 2022, 3:17pm UTC](https://forum.inductiveautomation.com/t/printing-labels-with-dot-matrix/56269/5 "2022-02-18T15:17:24Z")

</div>

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