printers and citrix

Grzegorz (Greg) Pasternak grzegorz at niagara.com
Tue Apr 14 15:01:27 EDT 2009


On Windows XP/NT/2000 if you search list archives you will find the code used to read the session id  while on Citrix.
You could:
- get current process id - use function 'GetCurrentProcessId'
- get session id - use function 'ProcessIdToSessionId'

Then you can store the printer name, read it upon startup, find out session id, modify printer name, store, use it for printing.

----- Original Message ----- 
From: "Nick Harris" <nick.harris at exact.be>
To: "OmnisDev List - English" <omnisdev-en at lists.omnis-dev.com>
Sent: Tuesday, April 14, 2009 11:32 AM
Subject: printers and citrix


> Hi All
> 
> I have a page setups library which has default page setups used by the
> rest of the application.
> 
> This library contains reports which hold the page setups.
> 
> The report name is based on a user defined code for the page setup and
> the printer name.
> 
> When printing a report and prompting for the destination, the user
> selects a printer from a drop list, and a second drop list is populated
> the reports matching that printer.
> 
> The problem is that Citrix changes the printer name, i.e. 
> 
> HP LaserJet 4 on PC_HARRIS in Session 4
> 
> next day it could be 
> 
> HP LaserJet 4 on PC_HARRIS in Session 6
> 
> Before I start reinventing the wheel, has anybody else came across this
> problem and how did they solve it.
> 
> Regards
> 
> Nick
> 
> 
> 
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
>


More information about the omnisdev-en mailing list