Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Current »

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.

ValueDescription
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#INIToXFRX

XFRX version: 17.3

XFRX version: 23.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
  • No labels