1. Diego A Villegas R
  2. PowerBuilder
  3. Wednesday, 13 November 2019 13:59 PM UTC

Hello,

I need some help with the change of default printer at runtime.


When  i open my Power Builder program y have a default printer , then i change de printer but the program dont change the default printer , What can i do? please . 

The user need change printers without closing the program and opening it again

René Ullrich Accepted Answer Pending Moderation
  1. Wednesday, 13 November 2019 14:42 PM UTC
  2. PowerBuilder
  3. # 1

Hi Diego,

you can use the PowerBuilders printer functions to change the printer for your application at runtime.

You may create your own dialog to select a printer using the PrintGetPrinters() function and you may set the default printer for your application using PrintSetPrinter() function.

To get the current default printer for Windows you may try the GetDefaultPrinter windows API.

HTH,

René

 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.