# print-function: standard printer

**URL:** <https://forum.servoy.com/t/print-function-standard-printer/1609>\
**Category:** Classic Servoy\
**Created:** [March 31, 2004, 8:24pm UTC](https://forum.servoy.com/t/print-function-standard-printer/1609 "2004-03-31T20:24:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [March 31, 2004, 8:24pm UTC](https://forum.servoy.com/t/print-function-standard-printer/1609/1 "2004-03-31T20:24:56Z")

</div>

when I hit the Print-button in a print-preview, I never get my default printer first.

Is it possible, that when the printer-dialog is used, that the default-printer is selected? and not always the first one in a row?

---

<div class="post-metadata">

**Author:** ![Jan\_Blok](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@Jan\_Blok](https://forum.servoy.com/u/Jan_Blok)\
**Post date:** [April 1, 2004, 7:50am UTC](https://forum.servoy.com/t/print-function-standard-printer/1609/2 "2004-04-01T07:50:06Z")

</div>

some reasons why the default printer is not selected  
-you are using controller.setPreferedPrinter(…)  
-default printers is not capable of printing highres. documents (for example plain text to file printer)

---

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [April 1, 2004, 8:19am UTC](https://forum.servoy.com/t/print-function-standard-printer/1609/3 "2004-04-01T08:19:16Z")

</div>

I don’t understand!

I don’t always use: controller.setPreferedPrinter(…)  
I have build this function, so that the client self can decide if she want this function. If the client did’nt select this function, than she get’s always a print-dialog

about the default printer: I mean my default windows printer.

I have a list of printers in windows, where one is my default printer.  
If I get in Servoy a printerdialog than that printer I would like to be first selected!

---

<div class="post-metadata">

**Author:** ![Jan\_Blok](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@Jan\_Blok](https://forum.servoy.com/u/Jan_Blok)\
**Post date:** [April 1, 2004, 9:19am UTC](https://forum.servoy.com/t/print-function-standard-printer/1609/4 "2004-04-01T09:19:53Z")

</div>

On a form where the default windows printer is not the first selected, did you do controller.setPreferedPrinter(…) for that form? and also are you sure the default windows printer is capable of printing highres.?

---

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [April 1, 2004, 9:34am UTC](https://forum.servoy.com/t/print-function-standard-printer/1609/5 "2004-04-01T09:34:33Z")

</div>

> On a form where the default windows printer is not the first selected, did you do controller.setPreferedPrinter(…) for that form?

No!

> and also are you sure the default windows printer is capable of printing highres.?

Yes, it is a Epson Color laser c1900N

---

<div class="post-metadata">

**Author:** ![Jan\_Blok](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@Jan\_Blok](https://forum.servoy.com/u/Jan_Blok)\
**Post date:** [April 1, 2004, 11:58am UTC](https://forum.servoy.com/t/print-function-standard-printer/1609/6 "2004-04-01T11:58:09Z")

</div>

Issue confirmed and will be fixed in Servoy 2.0 rc11

---

<div class="post-metadata">

**Author:** ![Westy](https://avatars.discourse-cdn.com/v4/letter/w/9de053/32.png) [@Westy](https://forum.servoy.com/u/Westy)\
**Post date:** [April 1, 2004, 2:48pm UTC](https://forum.servoy.com/t/print-function-standard-printer/1609/7 "2004-04-01T14:48:33Z")

</div>

Great! This will be a really big help. ![:D]( "Very Happy")
