|
Create Merge Fields |
[Top] [Chapter] [Previous] [Next] |
|
To insert a field use the method InputField. It expects the name of the field and the initial text. The boolean parameter controls if the cursor should be placed inside (true) or after the new field (false). Using the true you can insert multiple paragraphs or an image inside of the field.
VB: TextCursor.InputField "NAME", "Name-Field", False
C#: TextCursor.InputField("NAME","Name-Field",false);
TextDynamic uses standard RTF tags to load and save fields so merge fields inserted in Word are usually available in TextDynamic as well (without the extended attributes). Alternatively you can inserted the tags using escape text, i.e. <name> and use the method IWPTextCursor.FieldsFromTokens(StartText,EndText,FieldPreText) to convert the text into merge fields.
Please also see the method "MergeText" and "InputField".
Please also see our label printing demo. |