How _PDPARMS Array Is Created for a Printer Driver Setup

Last reviewed: April 29, 1996
Article ID: Q95309
The information in this article applies to:
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, 2.5a
  • Microsoft FoxPro for Windows, versions 2.5, 2.5a

SUMMARY

The _PDPARMS array holds the escape sequences and font information for a printer driver setup. The _PDPARMS array is created when one of the following events occurs:

  • A SET PDSETUP TO <printer driver setup name> command is issued.
  • A _PDSETUP = <printer driver setup name> command is issued.
  • A printer driver is set in the Printer Driver Setup dialog box.
  • FoxPro is started with a default printer driver set beforehand.
  • A printer driver is set for a report (.FRX) and the report is run with the PDSETUP clause.
  • A printer driver is set for a label program (.LBX) and the label program is run with the PDSETUP clause.

If FoxPro does not have enough memory, the _PDPARMS array might not be created.

MORE INFORMATION

The following is a list of what each _PDPARMS array element contains:

Element   Non-PostScript printer            PostScript printer

1         Printer name                      Portrait orientation (.T.)
2         Port                              Number of copies
3         Setup / first page flag           Scaled font size
4         Reset                             Spacing factor (leading)
5         Form length                       Italic (.T.)
6         Formfeed                          Bold (.T.)
7         Lines per inch                    Top margin
8         Characters per inch / font size   Document width / width
                                               scaling factor
9         Compressed                        Document length / length
                                               scaling factor
10        Orientation (portrait/landscape)  Bottom margin
11        Bold on                           Left margin
12        Bold off                          Font name
13        Underline on                      Bold font
14        Underline off                     Italic font
15        Italic on                         Font separator
16        Italic off                        Regular font
17        Superscript on                    Document height
18        Superscript off                   Full normal font name
19        Subscript on                      Scaled superscript size
20        Subscript off                     Scaled subscript size
21        Object printed on current page?   Actual font size
22        New line                          Superscript size
23        Horizontal Move Command-1         Subscript size
24        Horizontal Move Command-2         PDdocst user procedure
25        Global style (normal/italic)      PDpagest user procedure
26        Global stroke (medium/bold)       PDlinest user procedure
27        Line number                       PDobjectst user procedure
28        Document height                   PDobject user procedure
29        Document width                    PDobjectend user procedure
30        PDdocst user procedure            PDlineend user procedure
31        PDpagest user procedure           PDpageend user procedure
32        PDlinest user procedure           PDdocend user procedure
33        PDobjectst user procedure         Object counter
34        PDobject user procedure           Numeric scaled font size
35        PDobjectend user procedure        Not used
36        PDlineend user procedure          Horizontal points on page
37        PDpageend user procedure          Vertical points on page
38        PDdocend user procedure           Include regular font name
                                               with italic
39        Internal flag                     Loaded as PDriver/Library
                                               Flag
40        Top margin command                API Load _PDPARMS proc.
                                               address
41        Top margin in lines
42        Capture buffer
43        Loaded as PDriver/Library Flag
44        Font size
45        Font command
46        Current column number
47        Horizontal dots per page
48        Number of dots per column
49        Point size (design) in inches
50        Graphic character width
51        Numeric character width
52        API Load _PDPARMS proc. address (must be last element)


Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a
pdparms
KBCategory: kbprint kbsetup kbprg
KBSubcategory: FxsetupGeneral


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 29, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.