1. Olan Knight
  2. PowerBuilder
  3. Wednesday, 24 May 2017 16:38 PM UTC

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
  1. Wednesday, 5 July 2017 07:22 AM UTC
  2. PowerBuilder
  3. # Permalink

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
  1. Olan Knight
  2. Monday, 9 October 2017 16:12 PM UTC
Thank you, Julie!

  1. Helpful
There are no comments made yet.


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