Microsoft KB Archive/101581

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 08:21, 20 July 2020 by X010 (talk | contribs) (Text replacement - """ to """)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

How to Determine Which Printer Driver Is Loaded

ID: Q101581



The information in this article applies to:

  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, 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 query words: FoxDos 2.x setup set up default print pdparms

Keywords          : 
Version           : 
Platform          : 
Issue type        : 

Last Reviewed: August 23, 1999
© 1999 Microsoft Corporation. All rights reserved. Terms of Use.