# Select Printer

**URL:** <https://forum.xojo.com/t/select-printer/19135>\
**Category:** Getting Started\
**Created:** [September 7, 2014, 3:32pm UTC](https://forum.xojo.com/t/select-printer/19135 "2014-09-07T15:32:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Roth](https://forum.xojo.com/letter_avatar_proxy/v4/letter/m/0ea827/32.png) [@Michael\_Roth](https://forum.xojo.com/u/Michael_Roth)\
**Post date:** [September 7, 2014, 3:32pm UTC](https://forum.xojo.com/t/select-printer/19135/1 "2014-09-07T15:32:54Z")

</div>

I want to be able to print directly to 4 different printers from within my application (1 protocol printer, 3 thermal label printer) on windows and mac (currently developing on a mac) without user selection of the printer while using the application in daily operations. The printers are network printers and their individual setup is complete and ready. I only need to send the data to the printers for bulk jobs (no need to discuss pros/cons here - it is necessary for label printings in a laboratory environment).

There is a setup routine if the printers are not selected on startup. In this setup you can select a printer for each task/size I need (pageSetup Dialog) with the paperSize respectively predefined settings (so no need to do this within xojo). Afterwards I call the openPrinterDialog(ps) function and than store the setupString in a global string property (which is stored base64encoded in a pref file - but no worry at this point about this - it even doesn’t work without any savings etc.)

Afterwards you should be able to print a testpage/label to the selected printer. Unfortunately the testpage is always printed on the last selected printer regardless of loading the printerSetup in the openPrinter/openPrinterDialog function.

I’ve read the related topic at [https://forum.xojo.com/5282-get-selected-printer/0/](https://forum.xojo.com/5282-get-selected-printer/0/) but it didn’t give me any further clue - or do I miss something?

Is there any simple way to just get the right printer stored within a printerSetup? Or any other way?

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 5:24pm UTC](https://forum.xojo.com/t/select-printer/19135/2 "2020-10-29T17:24:31Z")

</div>


