How to Determine Which Printer Driver Is Loaded

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

SUMMARY

Printer driver information for all FoxPro for MS-DOS products is stored in an array named _PDPARMS.

To view the values stored in _PDPARMS, type the following command in the Command window:

   DISPLAY MEMORY LIKE _pdparms

MORE INFORMATION

The _PDPARMS array contains the name of the printer driver, all escape sequences, and font information for the printer driver.

If no information appears on the screen for _PDPARMS, a printer driver is not currently loaded.

If a non-PostScript printer driver is loaded, the first element of the _PDPARMS array contains the name of the printer driver.

If a PostScript printer driver is loaded, the first element contains a Boolean value that shows the print orientation. The value is true (.T.) when set to portrait orientation and false (.F.) when set to landscape orientation.

The following example shows the values of the first two elements when the Hewlett-Packard (HP) LaserJet II driver is loaded:

   _PDPARMS    Pub    A
          (   1)     C  "HP LJ II (60 lpp)"
          (   2)     C  "LPT1"

This example shows the values of the first two elements when the PostScript printer driver is loaded:

   _PDPARMS    Pub    A
          (   1)     L  .T.
          (   2)     C  "1"

For more information on how printer driver information is stored in the _PDPARMS array, query on the following words here in the Microsoft Knowledge Base:

   foxpro and pdparms and printer and driver


Additional reference words: FoxDos 2.00 2.50 2.50a 2.x setup set up
default print pdparms
KBCategory: kbprint kbprg kbtool kbsetup
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.