Selecting printer from code

  • Thread starter Thread starter Sophie
  • Start date Start date
S

Sophie

hi

I have buttons on my forms that cause various reports to be printed. But,
some of the reports are to be printed on one printer, and some on another
printer. Both are connected to the computer. How do I do this? It guess
it would be OK for the code to pull up the Print window, but I'd like it best
if the code can actually select the correct printer. (Lexmark E330 or Canon
i550)

Any clues appreciated.
 
Sophie said:
hi

I have buttons on my forms that cause various reports to be printed. But,
some of the reports are to be printed on one printer, and some on another
printer. Both are connected to the computer. How do I do this? It
guess
it would be OK for the code to pull up the Print window, but I'd like it
best
if the code can actually select the correct printer. (Lexmark E330 or
Canon
i550)

Any clues appreciated.

Open your report in design view, then drop down the File Menu and choose
Page Setup. On the Page tab, choose a printer. This setting is saved with
the report, so next time it's opened, the printer will be ready-configured.
 
Back
Top