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.

January 25, 2011
User Rating: / 1
Views: 2,653
PDF Link Add comments
Edition: Standard or above (Edition comparison)

  1. Create a new project. Click on the Project button on toolbar, and select New... from the drop down menu.
    new project
  2. In the New Project dialog box, enter Sample as project name. Click Create Blank Project to create the project.
    new prj
  3. 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.
    new ucd
  4. Enter Simple Use Case Diagram for the name of diagram.
    enter diagram name
  5. Draw a simple diagram like this:
    use case diagram
  6. Enter the documentation for the use cases. Select the Book Leisure Facility use case.
    select use case
  7. Open the Documentation pane. (You can open it by pressing the short cut key Ctrl-Shift-U)
    open doc pane
  8. Enter the documentation: Book leisure facilities through the computerized booking network.
    enter doc
  9. Enter the documentation for use case Enroll Leisure Activity: Enroll into recreation and sports activities. Monthly programme booklets are available at district offices.
  10. Enter the documentation for use case Register as Member: Register as a member. Member can enjoy recreation and sports facilities for free.
  11. Let's create a new report with report composer. Right click on Report in Diagram Navigator and select New Report from the popup menu.
    new report
  12. Select the use case diagram in Diagram Navigator.
    select ucd
  13. Open the Property Pane. (You can open it by pressing the short cut key Ctrl-Shift-P)
    open prop pane
  14. Drag the Use Case Diagram template out of the Property Pane.
    drag ucd
  15. Drop it to the report.
    drop to report
  16. We want to create a table of use cases, with their documentation.
  17. Right click on the Children template and select Duplicate... from the popup menu.
    dup template
  18. Rename the new template file to Children_doc.xml, change the ID and name to Children (with doc). Click OK.
    enter template info
  19. Change the column header from Type to Documentation, and change the property to query from modelType to documentation. Click OK.
    edit template
  20. Drag the Children (with doc) template out of the Property Pane.
    drag template
  21. Drop it to the report, under the image of use case diagram. The report should now look like:
    report ready
  22. Click on the Export button at the top right corner of report composer. Select Word Report... from the popup menu.
    export word report
  23. In the Export dialog box, specify the output path and click Export.
    export report
    Here is the exported Word report:
    report exported

Rate this Article

Click on one of the stars below to rate this article from 1 (lowest) to 5 (highest).

You may be interested in

  1. Writing Effective Use Case
  2. Draw Entity Relationship Diagram (ERD)
    Tagged:
  3. UML Package Diagram
    Tagged:
  4. Produce UML Use Cases from Business Process Diagram (BPD)
  5. Oracle database design with Entity Relationship Diagram
Tags of this article:

Comments (0)

Write comment

Rating

Comment

Enter the calculation result

security code