Controling Printer

R

Resti M. Guay

hi there,
i need help with my printer problem, i have a form called report consol, it
act's as my report and priter manipulator. and this is my problem:
1. i put a ComBox in my form and i want the ComboBox to be populated with
all available printer in my conputer, when i select the avialable printer i
will change my default printer the same with the selected printer name in my
ComboBox.
2. i put a CommandButton just to show the default pritner properties,
3. i also put two TextBox for the range of pages that i want to print,
 
A

Allen Browne

If you use Access 2002 or 2003, check out the Printer object and the
Printers collection. You can manipulate these to set the printer *before*
you OpenReport.

For an example, see:
Printer Selection Utility
at:
http://allenbrowne.com/AppPrintMgt.html
The article includes a sample database that demonstrates how to assign a
report to a printer at runtime, and have it use that printer in future.

To control the pages that should be printed, see the PrintOut method.
 
Top