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.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
Sets the xml for this word file.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
WordFile | 6.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
WordFile | The reference number of the open word file. | $wordFile | |
XML | The XML content for the word file. | ||
Part | The name of the part to query. See WordFile.Parts for a list of parts. if no part is given, we use the document. |
"document" | Optional |
Returns OK or error.
Change XML directly:
# get xml
Set Variable [ $xml ; Value: MBS( "WordFile.GetXML"; $wordfile) ]
# Change something
Set Variable [ $xml ; Value: Substitute($xml; "Times New Roman"; "Helvetica") ]
# put xml back
Set Variable [ $r ; Value: MBS( "WordFile.SetXML"; $wordfile; $xml) ]
This function checks for a license.
Created 15th March 2016, last changed 29th December 2021