powerbuilderpdf-conversion

How to use Amyuni PDF converter 4.0 in PowerBuilder 2017 without “run as Administrator”


We have an application in PB 2017 that using Amyuni PDF Converter 4.0 to print the report in PDF file. The application works well until we upgrade the PC to Windows 10. There is a message "Printer not activated, error code -30" when printing the PDF. If we run the program "as administrator", it works. But there are some users who cannot run as administrator and so they cannot print the reports in PDF.

Any advice for this issue?


Solution

  • I finally fixed this problem by modifying the permissions of the printer in Registry.

    1. Go to Registry and navigate to Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\Current\Software\my_printer_name.
    2. Right-click the printer key and select Permissions from the menu.
    3. Select Users and grant "Full Control" permissions for Users

    Now the PDF file can be printed without running the program "as administrator"