Microsoft KB Archive/109852

{| = PRB: ?/?? Output Not Using the Specified Printer Driver =
 * width="100%"|

ID: Q109852

The information in this article applies to:


 * Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, 2.5a, and 2.5b

SYMPTOMS
After you have set a printer driver, ?/?? output does not use the specified printer driver.

CAUSE
When you are printing with ?/??, the PDDOCST and PDDOCEND procedures in the GENPD.APP program are not called automatically; they must be called manually.

RESOLUTION
To avoid this problem, make sure you manually call the PDDOCST and PDDOCEND procedures. For example, the following code corrects the example shown below in the "More Information" section:

SET PDSETUP TO "Condensed" SET PRINTER TO LPT1 SET PRINTER ON  SET LIBRARY TO LOCFILE("driver2.plb") ? PDDOCST(_PLENGTH,128) && substitute 128 with desired page width ? "This is a test" ? PDDOCEND SET PRINTER OFF SET PRINTER TO

Steps to Reproduce Behavior
1. Create a printer driver called "Condensed" that prints 16.7 characters

per inch (cpi). 2. Execute the following code: SET PDSETUP TO "Condensed" SET PRINTER TO LPT1 SET PRINTER ON     ? "This is a test" SET PRINTER OFF SET PRINTER TO The text "This is a test" does not print in condensed print.