Article ID: 208840 - Last Review: August 17, 2007 - Revision: 2.2 How to use code to change a report's printer in Access 2000This article was previously published under Q208840 Advanced: Requires expert coding, interoperability, and multiuser skills.
On This PageSUMMARYYou can change the printer for a report or form in two ways:
MORE INFORMATIONMethod 1: Changing the Microsoft Windows default printerIn the Page Setup dialog box, you can select whether forms or reports are printed by either a default printer or a specific printer. If you select a default printer, the form or report is printed to the Windows default printer. If you want to change to another default printer, you must change the Windows default printer.For additional information, click the following article number to view the article in the Microsoft Knowledge Base: 246772
(http://support.microsoft.com/kb/246772/
)
HOWTO: Retrieve and Set the Default Printer in Windows
Method 2: Setting the PrtDevNames and PrtDevMode propertiesThe PrtDevNames property stores the name of the printer, and the PrtDevMode property stores the driver information. You need to change both of these properties in order to change the printer driver. If the PrtDevMode property does not match the PrtDevNames property (that is, the PrtDevMode property describes a different driver than the PrtDevNames property) a General Protection (GP) Fault may occur.To change the printer driver, you must do the following:
REFERENCESFor more information about the PrtDevMode and the PrtDevNames properties, click Microsoft Access Help on the Help menu, type PrtDevMode, PrtDevNames in the Office Assistant or the Answer Wizard, and then click Search to view the topic. For more information, visit the following Microsoft Web site: http://msdn2.microsoft.com/en-us/library/Aa207072(office.10).aspx
(http://msdn2.microsoft.com/en-us/library/Aa207072(office.10).aspx)
| Article Translations
|
Back to the top
