Application.Printers

D

DavidS

When I startup my Access 2007 application, and read the printers collection
from Application.Printers - there current, i.e., they list the printers that
are currently in the end-users printer and fax form associated with their
network login.

Since part of our system requirements are to extend means for the end-user
to create/remove printers from "Start | Printers and Faxes" taskbar item -
therefore on occasion it can happen that new printers are either added or
current printers are removed accordingly.

Issue I'm having with Application.Printers collection is that THIS IS NOT
CURRENT after network printers are changed unless I quit the access
application and relogin again. Basically, I'd like to have end-user not QUIT
the access application - but I assumed that if they changed the network
printers their using - working @ different site facility and we provide means
to access ONLY those printers - than when I re-read the Application.Printers
property it doesn't update itself with new printers in collection [again /
only unless I QUIT the access app and relogin is this proper].

Is this a design limitation - OR, is there a way that I can use this Access
Application object to give me the current list of printers as they can
possibly be changed dynamically by end-users.

Kind regards for assistance
 
S

Stephen Lebans

The only solution I can see is to follow the standard course to query
WIndows for the current list of installed printers. It's more code to read
the registry but it will give you a current list. A GooggleGroups search
will yield several examples of the necessary code to build the list.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


DavidS said:
ANY HELP HERE

DavidS said:
When I startup my Access 2007 application, and read the printers
collection
from Application.Printers - there current, i.e., they list the printers
that
are currently in the end-users printer and fax form associated with their
network login.

Since part of our system requirements are to extend means for the
end-user
to create/remove printers from "Start | Printers and Faxes" taskbar
item -
therefore on occasion it can happen that new printers are either added or
current printers are removed accordingly.

Issue I'm having with Application.Printers collection is that THIS IS NOT
CURRENT after network printers are changed unless I quit the access
application and relogin again. Basically, I'd like to have end-user not
QUIT
the access application - but I assumed that if they changed the network
printers their using - working @ different site facility and we provide
means
to access ONLY those printers - than when I re-read the
Application.Printers
property it doesn't update itself with new printers in collection [again
/
only unless I QUIT the access app and relogin is this proper].

Is this a design limitation - OR, is there a way that I can use this
Access
Application object to give me the current list of printers as they can
possibly be changed dynamically by end-users.

Kind regards for assistance
 
Top