Windows 2000 Terminal Server and Windows XP workstations. VFP8 SP1.
It appears that every time a user connects via terminal services, the workstations can see the printers but the windows printer name changes to include which machine it is connected to and the session number.
Our app allows the users to specify which printer to print every report, receipt, etc to by storing the windows printer name in a table along with the report form. For instance, if the user wanted to print receipts to a printer with a windows printer name of "HP LaserJet 4000 Series PCL 6 on XSERVER" then there would be a record in the table like so:
form cn_printer
receipt HP LaserJet 4000 Series PCL 6 on XSERVER
Our app sets the printer to name (cn_printer). This has worked well for years. The user only has to choose the printers for all output once and then only again if they add/remove printers and allows them to specify which printer every item prints to. We have utilities for mass changes etc. However, since the windows printer name changes in every session to include the session number, it no longer works for any printer other than the windows default printer during the terminal server session. Essentially what occurs is the app sets the printer to a windows printer name that no longer exists because the printer name has changed under windows in the new session.
Is there anyway to force terminal server to create the windows printer name specifically the same everytime on the workstation?
TIA,
Tracy
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"