Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Opens a word file from container.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
WordFile | 5.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
Container | The container value containing the word file. | MyTable::MyContainerField |
Returns reference number or error.
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 )]
This function checks for a license.
Created 5th November 2015, last changed 2nd November 2023