Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides
New in version: 5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2    Statistic  


Opens a word file from container.

Component: WordFile
Version: 5.4
Mac OS X: Yes
Windows: Yes
Server: Yes
FileMaker Cloud: Yes

MBS( "WordFile.OpenContainer"; Container )


Parameter Description Example value
Container The container value containing the word file. MyTable::MyContainerField


Returns reference number or error.


Opens a word file from container.
Can be a docx or a xml file.
Reference numbers for WordFiles start at 46000.


Open from container:

#load from container
Set Variable [$wordfile; Value:MBS( "WordFile.OpenContainer"; WordFile::Input )]
# later clean up
Set Variable [$r; Value:MBS("WordFile.Release"; $WordFile)]

Open word file and extract text:

Set Variable [$w; Value:MBS( "WordFile.OpenContainer"; Extract text from Word file::WordFile )]
If [MBS("iserror")]
    Show Custom Dialog ["Failed to read word file"; $w]
    Exit Script []
End If
Set Field [Extract text from Word file::Text; MBS( "WordFile.Texts"; $w )]
Set Variable [$r; Value:MBS( "WordFile.Release"; $w )]

See also

WordFile.MediaFiles   -   WordFile.OpenFile

Feedback: Report problem or ask question.

MBS Real Studio Plugins - Christians Software aus Nickenich