ACC2: How to Bypass Microsoft Access Print Setup Settings

Last reviewed: May 14, 1997
Article ID: Q130367
The information in this article applies to:
  • Microsoft Access version 2.0

SUMMARY

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

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:

  1. In a text editor, such as NOTEPAD.EXE, open the MSACC20.INI file located in the Windows directory.

  2. Scroll through the MSACC20.INI file to locate the [Microsoft Access] section and add the following line:

          UseDefaultPrSetup=1
    

  3. Save the MSACC20.INI file.


Keywords : kbprint PtrSetup
Version : 2.0
Platform : WINDOWS
Hardware : X86
Issue type : kbhowto


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 14, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.