AddAttachment Method
Add file to attachment list.
Object.AddAttachment(lcFileName, llEmbedded, lcDescription, lcFileType, lcRelationship [, lcXMLNS])
Parameters
lcFileName
File name.
llEmbedded
Embedded flag (must be true).
lcDescription
File description.
lcFileType
MIME type.
lcRelationship
Relationships for associated files.
Value | Description |
---|---|
Source | |
Data | |
Alternative | |
Supplement | |
Unspecified |
lcXMLNS
Extension data or xml name space of attachment.
Return value
Object.
Remarks
Applies To: XFRX#INIT, XFRX#LISTENER, PDFL#INIT, oXFRX
XFRX version: 17.3
XFRX version: 24.0 for oXFRX
AddAttachment method return reference to attachment object.
Examples
LOCAL m.lnErr m.loXFRX=EVALUATE([xfrx("XFRX#INIT")]) m.lnErr=m.loXFRX.SetParams("some.pdf",,,,.T.,,"PDF") IF m.lnErr=0 m.loXFRX.AddAttachment("test.xml", .T.,"ISDOC xml file","text/XML","Alternative") ENDIF