VPE returns printers of all users on Citrix

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

VPE returns printers of all users on Citrix

Postby bemsofpe » Thu Apr 05, 2007 1:02 pm

Hi,

We have recently discovered a problem when using VPE 3.5 on Citrix servers. When we get the list of printers, we do not only get the printers the user has defined, but also all printers that are created in other users sessions.

If we use the Windows API like this, we get only the users own printers:

run EnumPrintersA({&PRINTER_ENUM_LOCAL} + {&PRINTER_ENUM_CONNECTIONS},
"",
{&PRINTER_INFO_4},
get-pointer-value(lpPrinterEnum),
get-size(lpPrinterEnum),
output iNumBytes,
output iNumRecords,
output iReturnValue).


Is this a known issue, or is this a feature we can work around?

Patrick
bemsofpe
 
Posts: 35
Joined: Wed Dec 08, 2004 6:14 pm

VPE returns printers of all users on Citrix

Postby bemsofpe » Thu Apr 05, 2007 1:07 pm

An important remark to the original mail:
NOT ALL users see this behaviour
users who complain about this do NOT ALWAYS get all printers.
Very often the correct list is returned to the user.

Patrick Elsen
bemsofpe
 
Posts: 35
Joined: Wed Dec 08, 2004 6:14 pm

Postby IDEAL Software Support » Thu Apr 05, 2007 2:57 pm

For compatibility issues VPE up to version v3.60 is using GetProfileString() to retrieve the list of available devices. It seems this Windows function is not working correctly in your Citrix environment. There is no workaround available.

VPE v4.0 will fix this issue.

Regards
Thorsten Radde
IDEAL Software GmbH
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 32 guests