Element Sorting in Report Generation
Element sorting is always essential in modeling. Take the various diagram and model trees as example. One can easily locate an element from Model Tree if the listing of elements follows certain order such as by type or by name in alphabetical order. As representation of models, element sorting in report is as important as that in modeling. Think about a report that organize diagrams and elements in an un-ordered manner, how can reader find the content they need effectively?
Visual Paradigm supports different way of sorting the elements in generated report. The sorting will affect the sequence of elements appear in the PDF, HTML and Word report.
Applying the Sorting
The sorting of element is an option, which require to be set before generating a report. Let’s try to generate a PDF report and see how this option can be set.
Select
Tools > Report > Generate PDF Report... from the main menu.
This shows the
Generate PDF dialog box.
Specify the output path, and other parameters to suit your preferences.
Select the way how elements will be sort from the
Sort element by drop-down menu.
Press the Generate button.
Different Ways of Sorting
Automatic
Automatic is the default way of sorting. It sorts elements by listing them in the most logical order, which is to follow most readers’ understanding to that kind of diagram. As a consequence, the algorithm would be different for different diagram types due to their different characteristics.
Follow tree
Follow tree sort elements by following the sort order of the diagram tree in the tool. Because of this, it may sort elements by name or by type, depending on which way of sorting is selected in the diagram tree.
Sort by id or name
For diagram type that emphasis the ID of contained elements, elements will be sort by ID. A typical example is business process diagram, of which elements’ ID gives strong meaning to the elements. For the rest of diagrams, sorting will be based on the elements’ names.
Downloads
Source project
PDF report - Sort by automatic ordering
PDF report - Sort by following diagram tree
PDF report - Sort by ID or name
Resources