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

WordFile.Texts

Extracts text of word file.

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

MBS( "WordFile.Texts"; WordFile )

Parameters

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

Result

Returns OK 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


WordFile.SetXML   -   WordFile.WriteFile

Feedback: Report problem or ask question.




Links
MBS REALbasic Plugins - Pfarrgemeinde Messdiener Nickenich