2.9.84 FieldMapDataItem

The FieldMapDataItem structure contains information about a mail merge field mapping. All FieldMapDataItems that apply to a particular field mapping are grouped together. When a FieldMapTerminator is encountered, there is no further data about this field mapping, and any subsequent FieldMapDataItem structures are associated with subsequent field mappings.


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

FieldMapDataId

cbFieldMapData

Data (variable)

...

FieldMapDataId (2 bytes):  An unsigned integer that specifies the type of this FieldMapDataItem. This value MUST be 0x0001, 0x0002, 0x0003, or 0x0004.

cbFieldMapData (2 bytes):  An unsigned integer that specifies the size, in bytes, of the following Data element.

Data (variable):  Contains the actual data for this FieldMapDataItem. The meaning of the data depends on the preceding FieldMapDataId and is specified as follows.

FieldMapDataId

Data

0x0001

An unsigned integer that specifies the mail merge field is being mapped to a data source column. This value MUST be 0x00000001.

0x0002

A Unicode string that specifies the name of the data source column to which this merge field is being mapped. The string is not null-terminated.

0x0003

A Unicode string that specifies the name of the standard mail merge field to which the data source column is being mapped. The string is not null-terminated. This string MUST be ignored.

0x0004

An unsigned integer that specifies the zero-based index of the data source column to which this merge field is being mapped. If the value is 0xFFFFFFFF, this FieldMapDataItem MUST be ignored.