Microsoft KB Archive/130367

= ACC2: How to Bypass Microsoft Access Print Setup Settings =

Article ID: 130367

Article Last Modified on 7/5/2002

-

APPLIES TO


 * Microsoft Access 2.0 Standard Edition

-



This article was previously published under Q130367



Moderate: Requires basic macro, coding, and interoperability skills.



SUMMARY
If you design forms or reports that are printed on printers that use different paper sizes, such as Letter or A4 (as may be the case for international applications), you can add a UseDefaultPrSetup setting to the MSACC20.INI file to bypass the Microsoft Access Print Setup settings. The UseDefaultPrSetup setting causes the application to use the default Windows printer settings. The Microsoft Access Print Setup settings that are bypassed include the printer, the orientation, the paper size, and the paper source, even if you select them in the Microsoft Access Print Setup dialog box or set them by setting the PrtDevMode property.



MORE INFORMATION
WARNING: The UseDefaultPrSetup setting is not recommended if you use Microsoft Windows NT. It can cause a general protection fault when you preview a form or report.

To add a UseDefaultPrSetup setting to the MSACC20.INI file, follow these steps:

 In a text editor, such as NOTEPAD.EXE, open the MSACC20.INI file located in the Windows directory.  Scroll through the MSACC20.INI file to locate the [Microsoft Access] section and add the following line:

     UseDefaultPrSetup=1  Save the MSACC20.INI file.

Keywords: kbhowto kbprint KB130367

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.