Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Creating an RTF Template Fragment
A Template Fragment can return data from either an SQL Query, Model Scripts or Project Browser data. The process of defining the Template Fragment's contents varies depending on which of these types of data you want your Template Fragment to return, although in all cases the process is very similar to creating a standard RTF Template.
Access Project Browser package context menu | Documentation | Rich Text Format (RTF) Report (F8) > Templates
Create a new Template Fragment
Step |
Action |
See also |
||||||
---|---|---|---|---|---|---|---|---|
1 |
Click on the New button. The New Document Template dialog displays.
|
|||||||
2 |
In the New Template field, type the name for the Template Fragment.
|
|
||||||
3 |
In the Copy Template field, click on the drop down arrow and select either:
|
|
||||||
4 |
In the Template Group field either:
The Template Group determines the organization of the Template Fragment in the Resources window.
|
|
||||||
5 |
Select the Mark Template as Fragment checkbox.
|
|
||||||
6 |
Click on the OK button. The Document Template Designer displays in the Diagram View.
|
|||||||
7 |
Define the contents of your Template Fragment; the actual steps you follow depend on the data type you want the Template Fragment to return:
|
|
||||||
8 |
Once you have created the Template Fragment, you incorporate it into a standard RTF Template (or into an existing Template Fragment, if you wish). |
Adding Fragments to an RTF Template
|
Notes
• | As with standard RTF Templates, Template Fragments can also be created and opened via the Resources window |
• | Template Fragments in the Resources window are indicated by a red T symbol |
• | If you have an existing template that you want to use as a Template Fragment, open the template in the RTF editor and select the Template Fragment checkbox in the Document Options dialog |
• | If you embed a Template Fragment within another Fragment, report generation from the parent template will be slower |
Learn more
Learning Center topics
• | (Alt+F1) | Reporting | RTF Template Fragments | |
• | Create a SQL based Fragment 1 |
• | Create a SQL based Fragment 2 |
• | Create a Script Fragment 1 |
• | Create a Script Fragment 2 |
• | Create a Filtered Fragment 1 |
• | Create a Filtered Fragment 2 |
• | Combine Filtered Fragments |