PEExportOptions

PEExportOptions contains file format and output destination information that is retrieved by PEGetExportOptions, and used PEExportTo, when exporting reports.

C Syntax
typedef struct PEExportOptions {
    WORD StructSize;
    char formatDLLName [PE_DLL_NAME_LEN];
    DWORD formatType;
    void FAR *formatOptions;
    char destinationDLLName [PE_DLL_NAME_LEN];
    DWORD destinationType;
    void FAR *destinationOptions;
    WORD nFormatOptionsBytes;
    WORD nDestinationOptionsBytes;
} PEExportOptions;
Members

Visual Basic developers should refer to the VB syntax for specifics of the VB structure.

StructSize

Specifies the size of the PEExportOptions structure. Initialize the member to PE_SIZEOF_EXPORT_OPTIONS.

formatDLLName

Specifies a pointer to the null-terminated string that contains the format DLL name (of length PE_DLL_NAME_LEN = 64). The DLL is selected based on the format in which you want to export your report. Select the appropriate DLL name from the table below.


To export in this format Use this DLL


Crystal Reports Format

u2fcr.dll

Data Interchange Format

u2fwordw.dll

formatType

Specifies the type of format you want to use from those types supported by the selected DLL. Whether the format DLL you select supports only one format type (for example, uxfcr.dll) or multiple format types (for example, uxfdoc.dll), you must still fill in this member. Select the format type you want to use from the table below.


To export a report in this format Use this formatType


Crystal Reports Format

UXFCrystalReportType


Data Interchange Format

UXFDIFType


Word for Windows Format

UXFWordWinType


Word for DOS Format

UXFWordDosType


WordPerfect Format

UXFWordPerfectType


Quattro Pro 5.0 (WB1) Format

UXFQP5Type


Record Style Format (column of values)

UXFRecordType


Rich Text Format

UXFRichTextFormatType


Comma Separated Values Format (CSV)

UXFCommaSeparatedType


Tab Separated Values Format

UXFTabSeparatedType


Character Separated Values Format

UXFCharSeparatedType


Text Format (ASCII)

UXFTextType


Paginated Text Format (ASCII)

UXFPaginatedTextType


Tab Separated Text Format

UXFTabbedTextType


Lotus 1-2-3 (WK3)

UXFLotusWk3Type


Excel 4.0

UXFXls4Type


Excel 5.0

UXFXls5Type


Excel 5.0 Tabular

UXFXlsTypeTab


ODBC

UXFODBCType


HTML

UXFHTML3Type


Microsoft Internet Explorer 2 HTML

UXFExplorer2Type


Netscape 2 HTML

UXFNetscape2Type

formatOptions

Specifies a pointer to a structure that supplies date and number information. This information is used by the PEExportOptions structure when you want to export in one of the formats that support date and number options and you want to hard code your options. Select the appropriate structure (if needed) from the table below. WARNING: This member must be pointing to a valid address until PEStartPrintJob, is called.


To export a report in this format Use this structure if you want to hard
code formatOptions


Data Interchange Format

UXFDIFOptions


Record Style Format (column of values)

UXFRecordStyleOptions


Comma Separated Values (CSV)

UXFCommaTabSeparatedOptions


Tab Separated Values

UXFCommaTabSeparatedOptions


Character Separated Values

UXFCharSeparatedOptions


Paginated Text

UXFPaginatedTextOptions


Excel (Tabular)



ODBC Format

UXFODBCOptions


HTML Format

UXFHTML3Options

destinationDLL
Name

Specifies a pointer to the string (of length PE_DLL_NAME_LEN = 64, NULL-terminated) that contains the destination DLL name. The DLL used is determined by the destination to which you want to export your report. Select the appropriate DLL name from the table below.

To export a report to this destination Use this DLL name Use this DLL name


Disk File

uxddisk.dll

u2ddisk.dll


E-Mail (MAPI)

uxdmapi.dll

u2dmapi.dll


E-Mail (VIM)

uxdvim.dll

u2dvim.dll


Microsoft Exchange

uxdpost.dll

u2dpost.dll

destinationType

Specifies the type of destination you want to use from those types supported by the selected DLL. Even if the destinationDLL name you select supports only one destination type, you must still fill in this member. Select the destination type you want to use from the table below.


To export a report to this destination Use this destinationType


Disk File

UXDDiskType


E-Mail (MAPI)

UXDMAPIType


E-Mail (VIM)

UXDVIMType


Microsoft Exchange

UXDExchFolderType

destination
Options

Specifies a pointer to a structure containing information used by the PEExportOptions structure. This information is needed to export a report and hard code the file name (when exporting to Disk File) or e-mail message information (when exporting to MAPI or VIM destination). Select the appropriate structure (if needed) from the table below. WARNING: This member must be pointing to a valid address until PEStartPrintJob, is called.


To export a report to this destination Use this structure if you want to hard code destinationOptions


Disk File

UXDDiskOptions


E-Mail (MAPI)

UXDMAPIOptions


E-Mail (VIM)

UXDVIMOptions


Microsoft Exchange

UXDPostFolderOptions

nFormat
OptionsBytes

Set by PEGetExportOptions, and ignored by PEExportTo.

nDestination
Options-Bytes

Set by PEGetExportOptions, and ignored by PEExportTo.

Remarks

Note that both the formatOptions and destinationOptions members must be pointing to a valid address until PEStartPrintJob, is called.

VB Type Listing
Type PEExportOptions
    StructSize As Integer
    FormatDLLName As String * PE_DLL_NAME_LEN
    FormatType1 As Integer
    FormatType2 As Integer
    FormatOptions1 As Integer
    FormatOptions2 As Integer
    DestinationDLLName As String * PE_DLL_NAME_LEN
    DestinationType1 As Integer
    DestinationType2 As Integer
    DestinationOptions1 As Integer
    DestinationOptions2 As Integer
    NFormatOptionsBytes As Integer
    NDestinationOptionsBytes As Integer
End Type
Delphi Record Listing
type
    PEDllNameType = array[0..PE_DLL_NAME_LEN-1] or Char;
    PEExportOptions = record
        StructSize: Word;
        formatDLLName: PEDllNameType;
        formatType: dWord;
        formatOptions: Pointer;
        destinationDLLName: PEDllNameType;
        destinationType: dWord;
        destinationOptions: Pointer;
        nFormatOptionsBytes: Word;
        nDestinationOptionsBytes: Word;
    end;


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