"kchengso" <kc******@hotmail.com> wrote in message
news:41********@news.starhub.net.sg...
I forgot to mention that Printer.Devicename is a read-only
property in VB. Therefore Printer.Devicename = UCase
(Printer.Devicename) is not a valid statement . . .
Steen wasn't suggesting that you attempt to change the DeviceName (using
Ucase or anything else). What he was telling you is that you can change the
*returned* devicename so that the case is whatever you want it to be. I
can't see why you would want to actually change the device name itself. It
is almost certainly possible to do so from VB, but it's not really worth us
bothering to look into that unless you have a pressing reason to need to do
so.
Personally, I don't place too much reliance on device names simply because
it may actually be something other than you might expect, and in some cases
almost totally meaningless. If you want to print something that you know can
only be done on a specific printer (and if you want to know whether a
printer with such capabilities is attached) then I would suggest you check
its capabilities rsather than its device name.
If you really want to change it (and you don't want to bother looking for a
suitable VB method) then you can always use the Control Panel Printers
applet to do so.
Mike