1. Arthur Hefti
  2. PowerBuilder
  3. Friday, 30 October 2020 17:23 PM UTC

Hi

Background of the question is that the customers want to define a printer and settings of the printer and store this as default for our PowerBuilder application. PrintSetPrinter and PrintSetup work fine and are used when printing from PB however as soon as the application has ended the settings are gone. Of course I can store the printer but not the additional settings. 

PowerBuilder does these changes "internally" only, i.e. the Windows printer is not changed. So I can't read/set them through the Windows API with functions like "DocumentProperties()".

The function PRP_GetDC is well known and very handy as I can open a print job in PB with the current printer settings, get the DC and print PB unrelated things into this job.

I saw that there are quite a lot other PRP_ functions and from the naming some of them would cover my needs. So the big question is if we can get some documentation of them or if someone already has found some documentation. I know that using such functions wrong can mix up memory and crash the application.

Regards
Arthur



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