Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

WordFile.GetMediaFile

Queries media file in word file.

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

Parameters

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

Result

Returns container value or error.

Description

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

Examples

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

This function checks for a license.

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


WordFile.GetFieldText - WordFile.GetXML