How to Determine Which Printer Driver Is Loaded

ID: Q101581

The information in this article applies to:

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:

Last Reviewed: April 17, 1995