1. Olan Knight
  2. PowerBuilder
  3. Wednesday, 24 May 2017

PB V12.1

Specifically, where does the PB function "PrintGetPrinter()" go to look in order to determine the current printer?

Thanks,

Olan

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UPDATE:  24-MAY-2017 @ 2"38 PM CST.


I >>> THINK <<< the PowerBuilder function "PrintGetPrinter()" calls the Window function "GetPrinter()" using option #4.
https://msdn.microsoft.com/en-us/library/windows/desktop/dd144911(v=vs.85).aspx

Accepted Answer
Julie Jiang @Appeon Accepted Answer Pending Moderation
0
Votes
Undo

Hi Olan, 

The PrintGetPrinter function calls the Windows function GetProfileString to get the Windows device information from the win.ini file. In Windows 10, the device information is equivalent to the data value of the Device key in the Windows registry HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows.

Hope it helps!

Best regards,

Julie

Comment
Thank you, Julie!

  1. Olan Knight
  2. Monday, 9 October 2017
There are no comments made yet.
  1. Wednesday, 5 July 2017
  2. PowerBuilder
  3. # Permalink


There are replies in this question but you are not allowed to view the replies from this question.