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
Sets a media file image.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
WordFile | 6.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
WordFile | The reference number of the open word file. | $wordFile |
Name | The name of the item to change. | "image1.jpeg" |
Image | The container value with the image. | Test::MyImage |
Returns OK or error.
Replace image:
Set Variable [$w; Value:MBS( "WordFile.OpenContainer"; WordTest::wordfile )]
Set Variable [$r; Value:MBS( "WordFile.SetMediaFile"; $w; "image1.jpeg"; WordTest::image)]
Set Variable [$r; Value:MBS( "WordFile.WriteFile"; $w; "/Users/cs/Desktop/output.docx")]
Set Variable [$r; Value:MBS( "WordFile.Release"; $w)]
This function checks for a license.
Created 6th July 2016, last changed 6th March 2019