Tutorial 10
Report Design: Adjusting leading/trailing spacing
This tutorial assumes you have the knowledge gained from working with the previous tutorials. After this tutorial you will have the ability to invoke the internal report designer to adjust a report layout by altering the spacing (leading and trailing) of the various sections.
Perform the following steps:
- If the Query Designer Tool is already running, please close it down. Invoke the NuVu Query Designer from the NuVu Query program group from the windows Start menu. The main NuVu Query Designer window will be displayed, and a welcome dialog window will also be displayed that shows recently saved/opened queries. We are going to create a new query from the previous query (tutorial9), so double-click on the ‘tutorial9′ item that should be displayed inside the Welcome dialog window (if you have successfully performed the previous tutorial and saved it as specified in that tutorial with a name of‘tutorial9′). The original query will open inside the Designer. We need to now save this as ‘tutorial10′ before we start working with the query, so click on the File->Save As menu item and advise a new Query name of tutorial10 when the save properties are displayed.Click the button to save the query with the new advised name (tutorial10).
- Click the button to start the execution (running) of the query. This step will create a set of results that we can use when we are within the internal report designer later on in this tutorial.
- Click the (Report Designer) button on the toolbar to invoke the internal Report Writer for this query. The internal Report Writer is a banded report designer similar to other reporting products, that shows each defined section in its own band (for example, the Page Header has its own band, the Details section is shown in a separate band, and each total section is also shown in a separate band). The example shows the default bands that have been created for this tutorial below:
Note that there is only the default minimum spacing between top and bottom of each section. - Preview the current design by clicking the (preview) button on the extreme right of the toolbar menu to view the report as it would appear to the user in the current default format.Because there is now a second grid in this query, a dialog window will appear asking you if you wish to see the second grid details in the preview. To keep things simple, we are not going to show the second grid details, so untick the ‘show details from second grid’ as shown below:
- The PDF or NuVu previewer should now open with the report, as shown below:
- Now we will adjust the amount of space between the header area (Page Header Section) – this is achieved by placing the mouse at the bottom of this section, and waiting for the mouse pointer to change from a normal pointer to a horizontal drag cursor, then dragging with the mouse downwards until the desired spacing is achieved. The same operation is done on the Group Footer total section as well. Then we want to adjust the spacing before the start of the group footer section – that is achieved by advising a value into the ‘Leading Space’ field that is on the title bar of that section. The results are show below:
- Preview the current design by clicking the (preview) button on the extreme right of the toolbar menu to view the report as it would appear to the user in the current default format.Because there is now a second grid in this query, a dialog window will appear asking you if you wish to see the second grid details in the preview. To keep things simple, we are not going to show the second grid details, so untick the ‘show details from second grid’ as shown below:
- The PDF or NuVu previewer should now open with the report, as shown below:Note the gaps now shown below the page header and at the top and below each Country total section.
- We are now finished with the tutorial but need to save the changes that have been made to the report designer, so click the (close) button at the top right hand corner of the designer window to close down the designer screen. If any changes have been made, then you will be asked if you wish to save these changes (in memory) or discard them. In this case we would like to save the changes so choose that option.
- Finally we will save the changes made to this query including the changes made to the internal report writer (as this will form the base query for the next tutorial), so simply click the button and close down the query tool.
We are complete with the tutorial. An exported query containing this tutorial is available by right-clicking here and choosing Save Link As (Firefox) or Save Target As (Internet Explorer) to save the query import format file to a file on your hard disk, and then importing that query into the query tool (hint: choose File->Import Query from the main menu of the Query Designer).
End of Tutorial