Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
WordFile.OpenContainer
Opens a word file from container.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| WordFile | 5.4 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| Container | The container value containing the word file. | MyTable::MyContainerField |
Result
Returns reference number or error.
Description
Opens a word file from container.Can be a docx or a xml file.
Reference numbers for WordFiles start at 46000.
Does not work for old .doc files!
May break if newer versions of Microsoft Word or Office change the docx file format.
Examples
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
- IsError
- UnZipFile.OpenContainer
- WordFile.AppendTableRow
- WordFile.GetMediaFile
- WordFile.GetXML
- WordFile.MediaFiles
- WordFile.Release
- WordFile.ReplaceTag
- WordFile.Texts
- XML.GetPathValue
Example Databases
- WordFile/Extract text from Word file
- WordFile/WordFile Fields
- WordFile/WordFile Image
- WordFile/WordFile
FileMaker Magazin
Created 5th November 2015, last changed 16th November 2019
WordFile.MediaFiles - WordFile.OpenFile
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins