Skip to main content
Mitratech Success Center

Client Support Center

Need help? Click a product group below to select your application and get access to knowledge articles, webinars, training content, and release notes or to contact our support team.

Authorized users - log in to create a ticket, view tickets status and check your success plan details.

 

Inserting Tags and Preparing RTF Files

Based on the previous sections, you should be able to insert the correct document template tags to retrieve data. You will need to replace all of your placeholders with the correct tags.

After inserting all of the tags into your document template, your file must be converted to RTF, if you have not already been saving it as an RTF file.

To insert tags and prepare the RTF file

  1. With your word processing application, open the document template text that you previously created.
  2. Replace all of the placeholders with their corresponding document template tags. For more information about how to identify the data that you need from the Object Model, see Locating Object Attribute Names.
  3. Format the text and the document template tags exactly as you would like the information to appear in the generated document (specifically, enter all line returns, indentations, line formatting, font size, and so on).

    The Document Generator Template Page One image is an example of the text from the Document Generator Template - Text and Placeholders image that has been replaced with corresponding Document Generator tags. Notice that the formatting (line returns, indentation, spacing, tables, and so on) used in the Document Generator Template Page One image is reflected in the generated document shown in the Document Generator Template - Text and Placeholders image.
  4. Save the content with the extension RTF and close your word processing application.
  5. Find the RTF file you just saved and open it with a text editor such as Microsoft Notepad™.
    Caution: Do not use Microsoft WordPad™ to edit your RTF file. You must be able to see all formatting as text in your text editor.
  6. After opening an RTF file that was created with Microsoft Word™, all double quotes (") that were entered in Word may be displayed as \'94 in the text editor. Similarly, all single quotes (`) may be displayed as \'92.
    1. Find all instances of \'94 that appear within the source code and replace with double quotes (").
    2. Find all instances of \'92 that appear within the source code and replace with single quotes (`).
  7. Save the file.

This completes the content section of the document template. See the Document Generator Template Page One image for an example of a content section with Document Generator tags.

You must now build the header section and document tags of the template around this source code, as described in Using Document Template Headers and Completing the Document Template.

image

image

 

  • Was this article helpful?