# Createprintjob to named printer

**URL:** <https://forum.inductiveautomation.com/t/createprintjob-to-named-printer/5927>\
**Category:** Ignition\
**Created:** [February 26, 2013, 6:19pm UTC](https://forum.inductiveautomation.com/t/createprintjob-to-named-printer/5927 "2013-02-26T18:19:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fadihindi](https://avatars.discourse-cdn.com/v4/letter/f/34f0e0/32.png) [@fadihindi](https://forum.inductiveautomation.com/u/fadihindi)\
**Post date:** [February 26, 2013, 6:19pm UTC](https://forum.inductiveautomation.com/t/createprintjob-to-named-printer/5927/1 "2013-02-26T18:19:56Z")

</div>

Is there a way to direct a print job to a named (not default) printer, without showing a popup dialog box to select the printer? This works fine for directing to the default printer, but I have several task specific printers that I need to direct outputs to at different times without requiring user interaction.

---

<div class="post-metadata">

**Author:** ![dave.fogle](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@dave.fogle](https://forum.inductiveautomation.com/u/dave.fogle)\
**Post date:** [February 27, 2013, 12:17am UTC](https://forum.inductiveautomation.com/t/createprintjob-to-named-printer/5927/2 "2013-02-27T00:17:11Z")

</div>

What are you trying to print? If you happen to be printing a report from a report viewer then component has its own print function that does indeed take a printer name. If you're using createPrintJob() then there is a function (undocumented it seems, I'll make a note to add it to the manual) that allows you to specify the name of the printer. You would do something like the following:

`job = system.print.createPrintJob(my_component)
job.setPrinterName("the_printer_name")
job.print()`

---

<div class="post-metadata">

**Author:** ![fadihindi](https://avatars.discourse-cdn.com/v4/letter/f/34f0e0/32.png) [@fadihindi](https://forum.inductiveautomation.com/u/fadihindi)\
**Post date:** [February 27, 2013, 4:46am UTC](https://forum.inductiveautomation.com/t/createprintjob-to-named-printer/5927/3 "2013-02-27T04:46:06Z")

</div>

Yes that is exactly what I was looking for. Thank you.
