PEPrintOptions

PEPrintOptions contains printing specifications that are used by the PEGetPrintOptions, to retrieve current options and PESetPrintOptions,to pass new options. These specifications are the same as those that can be set using the Print common dialog box.

C Syntax
typedef struct PEPrintOptions {
    WORD StructSize;
    unsigned short startPageN;
    unsigned short stopPageN;
    unsigned short nReportCopies;
    unsigned short collation;
    char outputFileName [PE_FILE_PATH_LEN];
} PEPrintOptions;
Members

StructSize

Specifies the size of the PEPrintOptions structure. Initialize this member to PE_SIZEOF_PRINT_OPTIONS.

startPageN

Specifies the first page that you want to print. Page numbers are 1-based (Page 1 = 1, Page 2 = 2, etc.). Use 0 if you want to retain the existing settings.

stopPageN

Specifies the last page that you want to print. Page numbers are 1-based (Page 1 = 1, Page 2 = 2, etc.). Use 0 if you want to retain the existing settings.

nReportCopies

Specifies the number of copies that you want to print. Copy numbers, like page numbers, are 1-based. Use 0 if you want to retain the existing settings.

collation

Indicates whether or not you want the program to collate the copies (if you are printing multiple copies of a multiple page report). For this parameter, use one of the following constants:


Constant Description


PE_UNCOLLATED

Prints multiple copies of a multiple page report uncollated (Page order = 1, 1, 1, 2, 2, 2, 3, 3, 3, etc.).


PE_COLLATED

Prints multiple copies of a multiple page report collated (Page order = 1, 2, 3,..., 1, 2, 3,..., etc.).


PE_DEFAULTCOLLATION

Prints multiple copies of a multiple page report using the collation settings as specified in the report.

outputFileName

Specifies a path and file name (of length PE_FILE_PATH_LEN = 512) if the report is printed to a file.

VB Type Listing
Type PEPrintOptions
    StructSize As Integer
    StartPageN As Integer
    StopPageN As Integer
    nReportCopies As Integer
    collation As Integer
    outputFileName As String * PE_FILE_PATH_LEN
End Type
Delphi Record Listing
type
PEOutputFileNameType = array [0..PE_FILE_PATH_LEN-1] of Char;
PEPrintOptions = record
        StructSize: Word;
        StartPageN: Word;
        StopPageN: Word;
        nReportCopies: Word;
        Collation: Word;
        outputFileName: PEOutputFileNameType ;
    end;


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com