Uniface logical printers on Microsoft Terminal Server

Author: gianni.sandigliano@unifacesolutions.com (gianni)

This morning I got an interesting question from a Microsoft sysadm: on a Microsoft Terminal Server node a physical printer could be remapped at logon using group policies to support specific needs: see this link. I was told this redirection means a physical printer (MYPRINTER) is remapped to a derived name related to sessionID (let's assume MYPRINTER_MYSESSIONID) or userID (let's assume MYPRINTER_MYUSERID); remapping/redirection could involve not only the printer name but also other physical printer properties like TCP/IP port... Question was: if an existing Uniface application is configured to print to a Uniface logical printer originally configured on the physical printer MYPRINTER, how to deal with remapped infrastructure? My initial gotfeel has been: every remapping action at system level should be completely transparent to applications, not only the Uniface ones... But...on the other end I was asked if Uniface enables to create/map a Uniface logical printer on the fly... Has anyone already met such situation? How's better to deal with it? Thanks in advance for any answer/suggestion. Regards, Gianni


  1. We've had similar issues here - although not mapped on a terminal server. The user's INI file has the PRT_name which maps to a registry setting for that user. In the data part of the registry settings is the actual mapping to the MS printer. If this data changes between each login, then if it's a userid, you might be able to rewrite the registry settings. If it's based on a session_id, I would have as a guess it will get ugly, real fast.... For the 1st option, we had the registry settings for each user copied out to a separate folder, and 'rewrote' the registry entry when the user logged in. hth. Knut

    Author: Knut (knut.dybendahl@gmail.com)
  2. Knut said We've had similar issues here - although not mapped on a terminal server. ... 

    Hi Knut, I am still in the process to analyze this issue... btw: your answer is confirming it is a specific sysadm choice to decide to redirect/remap printers and it is not strictly related to Terminal Servers. Thanks for your info! Gianni

    Author: gianni (gianni.sandigliano@unifacesolutions.com)
  3. After analyzing this case in detail I cannot foresee a solution when printers redirection is used (on TS or a standard Win server) and on top of it should work a Uniface logical printers. I've decided to open a support case. Gianni

    Author: gianni (gianni.sandigliano@unifacesolutions.com)