Mac OS X
Components Crossplatform Mac & Win Server Client Old Guides Examples
New in version: 7.3 7.4 7.5 8.0 8.1 8.2 8.3 8.4 8.5 8.6 Statistic
Replaces a placeholder with text.
|Component||Version||macOS||Windows||Server||FileMaker Cloud||FileMaker iOS SDK|
|WordFile||The reference number of the open word file.||$wordFile|
|Placeholder||The name of the placeholder.
In plugin version 7.4 and newer case insensitive for ASCII characters.
The new text. Should not contain newline characters.
Pass 1 to replace all placeholders with same text.
Returns OK or error.
DescriptionReplaces a placeholder with text.
The place holder in the document must start with « and end with » characters. The place holder you pass here, should not have those quotes.
If you need to replace multi line text like addresses, please use several placeholders, at least one per line.
If you need to insert multiple entries, you can do this:
Ask the plugin for the XML of the document via WordFile.GetXML. Split the XML into the part before your template line, the template and the xml after. Your line probably is wrapped between a <p> and </p>. Now you can build a new XML with your content and repeat the template part with new text as often as needed. Than pass back the XML to the plugin via WordFile.SetXML.
Version 7.0 and newer can handle multi line text better for normal paragraphs. It creates for you new paragraphs for each line in the new text.
If you change font or style of the text within the marker, it will not be recognized. So please keep all text between and including the « and » markers (or whatever is configured) within the same font style.
Replaces placeholder with text:
Replaces all placeholder with text:
Replace some tags:
- MBS FileMaker Plugin, version 7.4pr3
- MBS FileMaker Plugin, version 7.2pr1
- MBS FileMaker Plugin, version 7.0pr1
Created 5th November 2015, last changed 12nd November 2018
Feedback: Report problem or ask question.
MBS Xojo Plugins