home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 9,111 of 10,840   
   kchengso to Mike Williams   
   Re: Printer Devicename - Can Change to U   
   25 Dec 04 09:24:13   
   
   XPost: comp.lang.basic.visual.misc   
   From: kchengso@hotmail.com   
      
   Thanks for comments from Steen, Jan and Mike.   
   I am able to follow what Steen suggested to change the returned value of   
   Printer.Devicename. However, my intention is to change the   
   Printer.Devicename itself to Upper Case and to write it back into the Window   
   Registry, so that the next time I call it, the returned value of the   
   Printer.Devicename will be in Upper Case instead of lower case.   
   This might seem trivial but it is made difficult as Printer.Devicename is a   
   read only property.   
   Appreciate your help.   
      
   "Mike Williams"  wrote in message   
   news:cqgrgu$t9$1@news6.svr.pol.co.uk...   
   > "kchengso"  wrote in message   
   > news:41cbe3b9$1@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   
   >   
   >   
   >   
   >   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca