Report Customization with Report Composer
Report composer is a report development tool which enables designers to design and construct complete model reports in quick. Besides developing a report with build-in templates, you can also create templates for defining your own way in building report. For example, write a template to loop through all model elements and print their names to report. In this tutorial, we will create a template to print out the name and documentation of shapes in a use case diagram.
- Create a new project. Click on the Project button on toolbar, and select New... from the drop down menu.

- In the New Project dialog box, enter Sample as project name. Click Create Blank Project to create the project.

- Create a new use case diagram via the Diagram Navigator. Right click on Use Case Diagram and select New Use Case Diagram from the popup menu.

- Enter Simple Use Case Diagram for the name of diagram.

- Draw a simple diagram like this:

- Enter the documentation for the use cases. Select the Book Leisure Facility use case.

- Open the Documentation pane. (You can open it by pressing the short cut key Ctrl-Shift-U)

- Enter the documentation: Book leisure facilities through the computerized booking network.

- Enter the documentation for use case Enroll Leisure Activity: Enroll into recreation and sports activities. Monthly programme booklets are available at district offices.
- Enter the documentation for use case Register as Member: Register as a member. Member can enjoy recreation and sports facilities for free.
- Let's create a new report with report composer. Right click on Report in Diagram Navigator and select New Report from the popup menu.

- Select the use case diagram in Diagram Navigator.

- Open the Property Pane. (You can open it by pressing the short cut key Ctrl-Shift-P)

- Drag the Use Case Diagram template out of the Property Pane.

- Drop it to the report.

- We want to create a table of use cases, with their documentation.
- Right click on the Children template and select Duplicate... from the popup menu.

- Rename the new template file to Children_doc.xml, change the ID and name to Children (with doc). Click OK.

- Change the column header from Type to Documentation, and change the property to query from modelType to documentation. Click OK.

- Drag the Children (with doc) template out of the Property Pane.

- Drop it to the report, under the image of use case diagram. The report should now look like:

- Click on the Export button at the top right corner of report composer. Select Word Report... from the popup menu.

-
In the Export dialog box, specify the output path and click Export.
Here is the exported Word report:
Rate this Article
Click on one of the stars below to rate this article from 1 (lowest) to 5 (highest).
One Moment Please
Thanks for rating this article.
Comments (0)