Formatting Data in Word with Tags

Format a Word report template with tags that map a report region’s data into the layout.

Use Microsoft Word or Excel to customize the PDF download for the Interactive Report on the Employee Directory page from Shaping Experience with Rules and Roles. For this report, you choose a Word document.

Here, you use Oracle Document Generator tags in a Microsoft Word layout document template, just as you did in an Excel Spreadsheet. For the Employee Directory layout, you need data like the following, to which you associate a convenient short name:

In your document template, reference the short name of your data source using Document Generator tags {#shortname} and {/shortname} to surround {fieldname} tags that reference the data source field values by name.

Tip: Field tag names are the lowercase column names of the report region associated with the layout.

As shown below, the Word document includes a formatted table, with a single row containing the four fields of the associated region’s data source. It references the dir short name and field names using the following tags. The vertical bars below represent table cell boundaries.

**{#dir}****{ename}**   |   **{job}**   |   **{mgr}**   |   **{deptno}{/dir}**

Microsoft Word Layout Document for Employee Directory

Description of the illustration word-layout-document.png