Salesforce

File2Ole (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

File2OLE (Magic xpa 3.x)

Enables programmers to convert a file into an OLE object, either by linking or embedding.

Syntax:

File2OLE (file name, linked)

Parameters:

file name: The name of the file to be converted.

linked: True indicates that the result will be a link to the file; or False indicates that the file will be embedded.

Returns:

The function will return an OLE object. If the OLE object is a Null, then the function will not be able to perform the conversion.

Example:

File2OLE('C:\att1.doc','TRUE'LOG) combines an OLE2 BLOB variable with a word file name att1.doc.

Reference
Attachment 
Attachment