2.9.204 Pmfs

The Pmfs structure specifies the mail merge data source connection properties.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

ipfnpmf

A

B

C

D

unused

tkField

tkRec

fnpi

ipfnpmf (8 bits): An unsigned integer value that specifies the type of data source for the mail merge. This MUST be one of the following values.

Value

Data Source

0xFF

None.

0x00

Data file.

0x01

Microsoft Access database.

0x02

Microsoft Excel file.

0x03

Microsoft Query database.

0x04

ODBC.

0x05

Office Data Source Object (ODSO).

A - fLinkToFnm (1 bit): If the data source is not a data file, this bit MUST be ignored. ,When the data source is a data file, this bit specifies whether the file MUST exist as specified in fnpi.

B - fLinkToConn (1 bit): Specifies whether an extra string is appended to the DDE initial connection string. This extra string is stored in the SttbfRfs structure in the Pms structure.

C - fNoPromptQT (1 bit): Specifies whether the user was already asked about whether to use Microsoft Query to edit ODBC.

D - fQuery (1 bit): Specifies whether the mail merge uses a query (such as "SELECT * FROM x") to obtain the data. If this value is set to zero, the mail merge reads the data file directly.

unused (4 bits): This field is undefined and MUST be ignored.

tkField (2 bytes): A signed integer that specifies the token to separate fields in the data file. If ipfnpmf is not 0x00 (data file), this value is undefined and MUST be ignored. Otherwise it MUST be one of the following tokens.

Value

Token

0x00

(none)

0x02

(enter)

0x06

(Tab)

0x0A

,

0x0B

.

0x0C

!

0x0D

#

0x0E

$

0x0F

%

0x10

&

0x11

(

0x12

)

0x13

*

0x14

+

0x15

-

0x16

/

0x17

:

0x18

;

0x19

<

0x1A

=

0x1B

>

0x1C

?

0x1D

@

0x1E

[

0x1F

]

0x21

^

0x22

_

0x23

`

0x24

{

0x25

}

0x26

|

0x27

~

0x46

(field end)

0x47

(table cell)

0x48

(table row)

tkRec (2 bytes): A signed integer that specifies the token to separate records in the data file. If ipfnpmf is not 0x00 (data file), this value is undefined and MUST be ignored. Otherwise, it MUST be one of the tokens shown in the table for tkField, MUST NOT be 0x00 (none) and MUST be different from tkField.

fnpi (2 bytes): An FNPI that specifies the type and identifier of a data file. The fnpt inside this fnpi MUST be 0x3 for mail merge type. The string in the SttbFnm structure that has an appended FNIF structure with an fnpi that is identical to this one is the file name of this data file for mail merge.