A User is printing from a Windows 2016 Citrix/Terminal Server. The same issue also occurs with Remote Desktop 2016.
When selecting the CR Viewers print button the printer dialog box appears, PrintToPrinter and PrintOutputCOntroller are used in CR Desktop Viewer, the Citrix Servers default printer is always selected.
In previous versions of RDC and Citrix it was the Users default printer that was selected.
Crystal Reports, Devloper for Visual Studio
- Crystal Reports Designer ( not confirmed )
Citrix 2016 Server
Remote Desktop Communicator
This issue appears to be a change that was done for Remote Desktop connections using a new registry key for the Remote Session.
Looking at the registry tree it appears MS is now generating a Session ID under this tree whihc is the Ussers WorkStation default printer:
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows\SessionDefaultDevices\S-1-5-5-0-8281985 - Device = PDF995 (redirected 1),winspool,Ne01:
Note: The Session ID is different each time a user connects - S-1-5-5-0-8281985
CR for VS's Viewer is using this key:
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows - Device = Microsoft Print to PDF,winspool,Ne01:
This is the Windows Servers default printer and is selected
This issue has now been escalated to R&D for a solution in SP 24.
R&D discovered Microsoft changed the default behaviour when dealing with the Users Default printer on Server 2016
CR used this to get it: GetSysProfileString (_N("windows"), _N("device"), _N("")) to get the default printer
We are now using: ::GetDefaultPrinter to get the default Users local printer
A quick Google search found this link which may be related or explain what changed:
Default Printer always selected, cr for vs, Remote Desktop, Citrix Server. , KBA , BI-DEV-NET , BI Software Development Kits (SDKs) - .NET or Other , Problem