PRB: Unable to Print a Box from Microsoft FoxPro

Last reviewed: April 17, 1995
Article ID: Q87680
The information in this article applies to:
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, and 2.5a

SYMPTOMS

When you attempt to print a box from FoxPro for MS-DOS, other ASCII graphics characters appear where the lines of the box should be.

CAUSE

The printer is set up to print ASCII characters instead of their graphic representations.

RESOLUTION

The following are two methods for working around this problem:

  • Change your printer to print in a font that supports the IBM graphics character set.

    -or-

  • Modify the P_CODES.DBF database as follows:

    WARNING: Modifications to the P_CODES database and to GENPD.APP are not supported.

    1. From the File menu, choose Open.

    2. For Type, select Project, and then select the

          GOODIES\PDRIVERS\GENPD.PJX project.
    

    3. Scroll down to select the P_CODES database.

    4. Choose Edit. The Browse window appears.

    5. Use the TAB key to move to the P_SETUP field. Replace the contents

          of the field with the following ("<-" introduces an escape code)
    

             <-E<-(10U
    
          where "(10U" is a left parenthesis, the number ten, and a capital
          "U".
    
          NOTE: This escape code does not work with dot-matrix printers; if you
          are using a dot-matrix printer, refer to the printer manual for the
          correct escape code to use.
    
      6. From the Project menu, choose Build. Then choose both Build
         Application and Rebuild All.
    
       7. Change the contents of the Directory field to point to your FoxPro
          directory, and then choose Save.
    
    
To specify the escape code for step 5 in the Command window, enter the following command:

   REPLACE P_SETUP WITH CHR(27)+"E"+CHR(27)+"(10U"

NOTE: This escape code does not work with dot-matrix printers; if you are using a dot-matrix printer, refer to the printer manual for the correct escape code to use.


Additional reference words: FoxDos 2.00 2.50 2.50a 2.x laser
KBCategory: kbprg kbprb
KBSubcategory:


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: April 17, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.