-2

I want to print to pdf using Redmon and Ghostscript on windows 10, for which i added a new printer(set drivers to ghostpdf.inf) and added redirection port(RPT1). Now when i configure this port i get the error Invalid window handle, please check the picture. Thanksenter image description here

Jay
  • 29
  • 6

2 Answers2

0

Okay you need admin rights - edit port configuration using cmd as admin with command - printui.dll PrintUIEntry /p /n "printer name"

Jay
  • 29
  • 6
0

It is much better and more stable if you create a new port via "Print Management" of Windows, not via Printer Properties window

leminhson
  • 1
  • 1
  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jul 12 '22 at 04:35