Mac OS X
Components Crossplatform Mac & Win Server (Not) Client Old Guides
New in version: 5.4 6.0 6.1 6.2 6.3 6.4 6.5 7.0 7.1 7.2 Statistic
Replaces a placeholder with text.
|WordFile||The reference number of the open word file.||$wordFile|
|Placeholder||The name of the placeholder.||"City"|
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.
Replaces placeholder with text:
Replaces all placeholder with text:
Replace some tags:
Feedback: Report problem or ask question.