User's Default Printer

  • Thread starter Thread starter William
  • Start date Start date
W

William

Hi All,

I am in the process of finalizing an Access application
before using Office developer XP to make a distributable
runtime application. A few months ago, someone referenced
a problem with the program not adjusting for a different
printer on the user's machine. There was some code
presented to have the program automatically identify and
accept the users default printer. Don't remember where I
saw it but am sure I found it within the newsgroups.

Can anyone point me in the right direction for
identifying obtaining this code or can anyone supply.

Thank you in advance,

William
 
Thanks for your reply, Allen. I did not make my question
clear. First, I have no idea who will be using the
application or what printer she/he will be using. Second,
there are approximately 100 reports that are brought up
by selection from a series of selecting menus. The
article I referred to and that I was lucky enough to read
and unaware enough to misplace appoached the issue of the
printer once at the time that the application is opened
regardless of where and with what printer would be
attached. The solution was adding a one time insertion of
to the VB code that would automatically call for the
default printer on the user's computer.

Thanks,

William
 
I think you may have misunderstood Allen. You shouldn't need any additional
code to set the default printer. As long as this box is checked within the
Access the program it should automatically detect any user's printer
regardless of the model. Thus if Suzy in one cubicle has a LaserJet 4 and
Bob down the way has his default printer set to the HP Laserjet 4000, both
can open your Access program and print to their respective printers without
having to set anything within Access. At minimum, either one or both may get
a message that a specific printer isn't available and do they want to use
blah blah blah, in which they just click Yes.

You may want to take a look at a book called Access 2000 or 2002
Programmer's Edition (Desktop). It contains sample code on how to control
printer settings etc.
 
Back
Top