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: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

WordFile.Texts

Extracts text of word file.

Component Version macOS Windows Linux Server iOS SDK
WordFile 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "WordFile.Texts"; WordFile )   More

Parameters

Parameter Description Example
WordFile The reference number of the open word file. $wordFile

Result

Returns text or error.

Description

Extracts text of word file.
Plugin inserts a few newline characters for detected line ends.

May not give all text. If you miss something, please send us test files.

Examples

Extracts text:

Set Field [WordFiles::Texts; MBS("WordFile.Texts"; $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

Example Databases

This function checks for a license.

Created 5th November 2015, last changed 19th January 2018


WordFile.Tags - WordFile.WriteContainer

💬 Ask a question or report a problem