Creating a Printer Driver Setup User ProcedureLast reviewed: April 18, 1995Article ID: Q114130 |
The information in this article applies to:
SUMMARYThe User Procedure option of the Printer Driver Setup dialog box allows additional control over printed output without changing the GENPD.APP printer driver program code. This article supplements the documentation on this option found in the FoxPro for MS-DOS "Developer's Guide" by providing an example of its usage.
MORE INFORMATIONThe following steps demonstrate how to add a printer command to set a right margin of 50 for use with an HP LaserJet III. Create the User Procedure program, named MARGIN50.PRG, as follows:
* M A R G I N 5 0 . P R G Printer Driver Setup User Procedure * * This program uses the first parameter passed to it from PDDOCST * routine found in the GENPD.APP driver program * PARAMETER parm1 RETURN parm1 + CHR(27) + "&a50M"To link the procedure with the printer driver setup, do the following:
|
Additional reference words: FoxDos escape codes pddocst pddocend pdpagest
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |