VBA Printing



Hello, I'm trying to get and set the printer that is currently connected to
my laptop. I travel around and hook up to over 100 printers which are all
the same USB printer. Each time I encounter a new printer I install the
drivers for it. I then get a new printer icon, which it access's another
USB port. I then rename the printer and record the port it uses. I know how
to check if a printer exist and I know how to change the active printer
within my code. My problem is each time I add a printer the ports change
(Ne00: Ne01: Ne02 etc... This is fine. I can get from my records in my
code to get the printer based on the name given and port used. What I have
noticed is that after I connect to a printer that has been previously
installed for some reason the original port assigned has changed. So what I
would like to do is use a For/Next loop to check until the printer and port
exist or tell me that a printer hasn't been installed yet.
I think I can create this code myself except I'm not sure how to get the
for/next loop to check
Ne00: Ne01: Ne02: Ne03: Ne04: Ne05: Ne06: Ne07: Ne08: Ne09: Ne10:
Ne11: Ne12: .......
I can make it do x = 0 to 100 but I need a zero infront of the first 10
numbers.

Thanks in Advance once Again!
Craig




.



Relevant Pages

  • Is FreeBSD ready for desktop (Mozilla Flash)
    ... monitor,, somehow the install fails to detect ... "Macromedia Flash plugin is not available for FreeBSD. ... I quote again "Install the www/linuxpluginwrapper port. ... servers, ...
    (comp.unix.bsd.freebsd.misc)
  • New software uploaded by Denise on Oct 23 07:10:00 -4 2006
    ... and starting compiling the 'bar' port. ... and now where should you install your terminators? ... filter option may run a filter on the wrong type of file and cause ... FreeBSD does not currently support IBM's microchannel bus. ...
    (Linux-Kernel)
  • Re: KMDF Fakemodem not working
    ... I'm using the `Windows Vista and Windows Server Longhorn x86 Checked Build ... install the fakemodem with devcon: ... INf in the sample should tell you how to use devcon to install the driver. ... Why do I need to choose a COM port? ...
    (microsoft.public.development.device.drivers)
  • CLOSING: Norton Personal Firewall 2003
    ... go back to NPF2002 because it detects port scans, ... wrong during uninstall, install or setup of rules and programs and what ... Just created a ghost from my present system on my "server" (which is ... I'll think i'll wait for Symantec to respond. ...
    (comp.security.firewalls)
  • Re: Portinstall question
    ... I was just wondering why you would want to use portinstall to ... install new software, rather than: ... portinstall is just portupgrade by another name. ... an already installed port. ...
    (freebsd-questions)