ACC1x: How to Use the PrtDevNames Property on Reports

ID: Q109402


The information in this article applies to:


SUMMARY

You can use the PrtDevNames property to check or change the currently connected printing device and port for specific reports.

The PrtDevNames property is not documented in the Microsoft Access manuals, but are planned for inclusion in a future release of the program.


MORE INFORMATION

The PrtDevNames property sets or returns information about the selected printer. It is a variable-length string that mirrors the DEVNAMES structure defined in the Microsoft Windows Software Development Kit, with the following components:

Microsoft Access uses the DEVNAMES structure to initialize the Print Setup dialog box. When you choose the OK button to close the dialog box, information about the selected printer is returned in the PrtDevNames property.

NOTE: You cannot change the PrtDevNames setting without changing the PrtDevMode setting to your current printer settings. Some Windows printer drivers assume that the PrtDevMode was created by that driver. If you select a different printer driver in the PrtDevNames structure without changing the PrtDevMode structure, Microsoft Access will pass the old PrtDevMode structure to the new printer driver. This may cause the printer driver to operate incorrectly and could cause Application Errors.

Additional query words: PtrIss


Keywords          : kbprint PtrOthr 
Version           : 1.0 1.1
Platform          : WINDOWS 
Issue type        : kbhowto 

Last Reviewed: March 30, 1999