Microsoft KB Archive/87680

{| = PRB: Unable to Print a Box from Microsoft FoxPro =
 * width="100%"|

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 (&quot;<-&quot; introduces an escape code) <-E<-(10U

where &quot;(10U&quot; is a left parenthesis, the number ten, and a capital     &quot;U&quot;.

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)+&quot;E&quot;+CHR(27)+&quot;(10U&quot; 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:
 * }