Rohit

RE the the "local printer queue name" I'd avoid it all together
and use a client based LPD server and share the printer back
on the server, It avoids the name constanltly changing issue

Neven


----- Original Message -----
From: "Max Nilson" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Thursday, January 23, 2003 2:27 PM
Subject: RE: [DUG]: Terminal Server


> Rohit Gupta asks:
>
> > Has anyone used Terminal Server for their Delphi apps ?
> >
> > Have you any experience to share ?  Any pitfalls to watch out for ?
>
> Yes, we have a fairly large number of clients using our applications via
> Terminal Server these days. There are two warnings I can provide that may
be
> of help.
>
> Firstly is the vexing issue of local printers and how they appear to the
> terminal server application. TS munges the local printer queue name by
> adding "/Session9" and similar to the name. This means that every time a
new
> session starts the local printers name changes, and if you are storing the
> printer queue names somewhere you need to handle this. As we allow users
to
> save default printers for various different document types I have had to
> modify the code to compare printer queue names by stripping off these
> additions.
>
> Secondly it turns out that the call CreateCompatibleBitmap is
> ****EXTREMELY**** slow on Terminal Server. And CreateCompatibleBitmap is
the
> GDI call used every time that you create a new TBitmap object in Delphi.
It
> took me a while (and a damn good profiler installed on the server) to
figure
> out why certain drawing operations were so slow on Terminal Server and not
> on a normal machine. Once I found this I simple cached the required number
> of TBitmaps I needed and reused these over and over, rather than creating
> and destroying these every time though the draswing code. This increased
the
> speed of the drawing in question by an order of magnitude and made the
> application run perfectly in TS.
>
> Apart from that we use the same code on both environments with no
problems.
>
> <Mutters> Apart from the guy in Scotland, accessing his company TS in NZ
via
> a web cafe, who is having problems printing for some reason 8-( </Mutters>
>
> Cheers, Max.
>
> --------------------------------------------------------------------------
-
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
>
>

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to