Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5   8.6    Statistic  


Queries media file in word file.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
WordFile 6.3 Yes Yes Yes Yes Yes
MBS( "WordFile.GetMediaFile"; WordFile; Name )   More


Parameter Description Example value
WordFile The reference number of the open word file. $wordFile
Name The name of the item to query. "image1.jpeg"


Returns container value or error.


Queries media file in word file.
Returns the images, so you can put them into a container.


Extract image from word file:

Set Variable [$w; Value:MBS( "WordFile.OpenContainer"; WordTest::wordfile )]
Set Variable [$r; Value:MBS( "WordFile.GetMediaFile"; $w; "image1.jpeg")]
Set Field [WordTest::image; $r]
Set Variable [$r; Value:MBS( "WordFile.Release"; $w)]

See also

Blog Entries

Created 6th July 2016, last changed 6th July 2016

WordFile.GetFieldText   -   WordFile.GetXML

Feedback: Report problem or ask question.

MBS Xojo blog