[en] Set Printer action fails when connected to the server using Remote Desktop Connection

目前还没有官方翻译。

[en] Problem

[en] By default, when you print from a remote computer via Remote Desktop Connection, applications make local client printer drivers available in the remote session. Automation will fail with the error message:

"Unhandled exception occurred while executing trigger:
MergeDevMode for <name_of_the_local_printer_forwarded_to_the_server> failed!".

[en] The client's default local printer also becomes the default printer in the remote session. NiceLabel Automation doesn't use any of the forwarded printer drivers. When Automation tries to use the default printer driver in a remote session, the error occurs.

[en] The default printer driver is used if:

  • [en] Your labels are saved with a specific printer driver, which is not installed on the remote computer.

  • [en] Your labels are configured to print to a default printer (this is rarely used).

[en] Solution

[en] To prevent this error, do any of the following:

  • [en] Disable forwarding local printer drivers in the Remote Desktop Connection application.

    kb264-printer_forwarding.png
  • [en] Make sure the printer driver required by the label is installed on the remote computer.

  • [en] Use the Set Printer action in front of the Print Label action to ensure the usage of the correct printer.