Geobank-Advanced-Reports-Training
Geobank-Advanced-Reports-Training
0
Product Reference Document
Micromine Geobank Version: 2024 (24.0)
Revision Date: 24 January 2024
Copyright 2024 Micromine Australia Pty Ltd. All rights reserved.
Information in this document is subject to change without notice. The software described in this doc-
ument is furnished under a license agreement or nondisclosure agreement. The software may be
used or copied only in accordance with the terms of those agreements. No part of this publication
may be reproduced, stored in a retrieval system, or transmitted in any form or any means electronic
or mechanical, including photocopying and recording for any purpose other than the purchaser's
personal use without the written permission of Micromine Australia Pty Ltd.
Micromine Australia Pty Ltd
Level 6, 251 St Georges Terrace
Perth WA 6000
Phone +61 8 9423 9000
Contents
Introduction to Advanced Reports 1
Report Creation Basics 2
Designer Elements 8
Report Controls 9
Data Binding for Controls 11
Smart Tags 12
Saving Report Layouts 15
Exercise - Positioning Labels 17
Page Setup 17
Alignment and Layout of Controls 19
Exercise - Alignment 19
Exercise - Layout 21
Positioning Controls 22
Bookmarks and Document Map 25
Exercise - Using Styles 31
Appearance Properties 31
Visual Styles 33
Formatting Data 36
Passing Parameters to a Report 39
How to Create a Report with Parameters 40
Exercise - Create a Report with Parameters 40
4
CONTENTS │ Advanced Reports Training
6
Advanced Reports is both a report generator and a data browser. While the Advanced Reports is
primarily used to design and print graphic drillhole logs, it can also be used to generate other types
of scaled diagram, for example, locality maps. Advanced Reports interprets the instructions in a
design sheet and renders text and images accordingly, making it possible to create customised
reports in a wide variety of formats.
As a data browser, the true power of Advanced Reports is revealed. Simple navigation tools are
provided which allow the user to browse through data. For example, with drillhole data in a scaled
graphic format, the user could move from one hole to the next, and page up and down the length of
the hole.
As a report generator, the user has access to a highly configurable environment, ranging from
simple text summaries to highly complex composite graphical reports, and even the ability to
embed other reports.
2. Enter the report Name and Description. This uniquely identifies the Report by Name.
3. Set up the master Dataset, which contains the fields to be used in the report.
a. Firstly, click on Datasets, then click the plus icon to add a new dataset.
4. Click on Layout, then click on the Launch Designer icon and wait until the Report
Designer is launched.
Report Bands
Every report in Advanced Reports is a banded report. This means that a typical report consists of a
number of bands, each of a different type. Every band may contain report controls.
What is a Band?
A Band represents a specific area in a report. Controls added to a Band can be given attributes that
relate to that Band.
Band Types
When a new blank report is created it looks similar to the image shown below. The report's area is
initially divided into four basic bands (Report Header, Page Header, Detail and Page Footer
bands).
A particular band type specifies how the controls located on this band are rendered, their rendering
order and how many times they are rendered (in the case of a data-bound report). In the Report
Designer, some of the band strips may display tips with information on how bands will be rendered.
For instance, for the Page Header and Page Footer bands, the "one band per page" tip is dis-
played.
When you are creating a particular report, you can add or remove any bands.
The table below lists the available band types:
The following image illustrates the relative positions of different band types, and how many times
they are rendered in a report.
This will invoke the Report Editor dialogue, which displays a hierarchical tree of report bands and
is intended for adding or removing bands, as well as editing their public properties.
"Report Controls"
The following table lists the main interface elements of the Report Designer. Starting locations
have been given for each element but all except Design Panel and Status Bar can be moved
around, pinned, unpinned, floated or closed. If you lose a window, in the Ribbon under View, the
Windows button gives you a list of the controllable windows.
Element Description
Top Represents the main toolbar in the Designer that unites
Ribbon Control the Main, Formatting, Layout and Zoom toolbars, as well as
the Scripts tab button.
Centre This is the Designer's main element, as it represents a
surface where a report is being edited and previewed. The
Design Panel
Designer provides a multi-document interface and can have
as many Design Panels as required, each associated with a
Report Controls
A Report Control represents a specific report element (e.g. static or bound text, line, picture etc.)
that can be inserted into an Advanced Report. Report controls can reside either inside report bands
or inside other report controls that may serve as control containers (e.g. a panel). The appearance
and behaviour of a report control is defined by its type. These controls can be found in the Button
Bar on the left or the Tool Box panel.
Control Types
Below is a list of the basic report controls available in Advanced Reports:
Control Description
A Label control allows you to embed plain text, which can be populated using a
dataset, into your report.
A Rich Text control is used to display, enter and manipulate formatted text. You can
enter and format its text at design time, load it from an external file, or bind this control
to a data field.
A Picture Box controls the display of an image in a report. Use this control to insert
images of different types into your reports.
The Panel control is used to insert a Panel into a report that can be used to embed
other control objects for grouping purposes.
A Character Comb control allows the insertion of boxed equal-spaced characters into
a report. These can be multi-line.
A Bar Code control allows you to insert many different barcode types into a report.
A Chart control lets you represent your data graphically, choosing from a large number
of 2D and 3D-looking chart types.
A Cross Tab control places a cross tabulation table (also called a pivot table)
which represents data from an underlying dataset in a cross-tabulated form to
create cross-tab reports.
A Sparkline control allows you to insert different types of graph. Types include Line,
Area, Bar and Win-Loss.
A Sub Report control displays other reports in a report, such as company logo and title
block or a section of a report.
A PDF Content control enables the embedding of a PDF file in the report.
A Table of Contents control shows the Table of Contents with level options.
A Page Info control displays auxiliary information in a report. Use this control to display
page numbers, the current date or user information in your reports.
A Page Break control serves to mark the place where a report should start a new
page. The Page Break property can be used to break a page just before or after a par-
ticular band.
A Cross-Band Line draws a line that can cross through the bands of a report from the
Start Point in the Start Band to the End Point in the End Band.
A Cross-Band Box draws a rectangle that can cross through the bands of a report from
the Start Point in the Start Band to the End Point in the End Band.
"Positioning Controls"
Use the control's smart tag, and, in its actions list, locate the Data Bindings section, and invoke its
drop-down menu. Then, select the field in the table to which you want to bind.
You can bind an existing report control or add a new bound control by simply dragging the required
item from the Field List onto a report band or existing control.
Advanced Report
You will find the smart tag for the report, which covers properties that are applied to the report as a
whole, in the top left of the report's workspace area.
The following is the smart tag for the Group Header band.
1. Click on the cross on the top right-hand corner of the Report Designer to close this win-
dow.
Alternatively, you can click on the Exit button in the top left-hand corner.
2. Click OK on the Property Editor to save the changes you have made to the Report.
Page size
Select the desired page size from the drop-down menu.
Orientation
Select either Portrait or Landscape from the drop-down menu.
Margins
Click on Margins, and either select from the available margin options or choose Custom Margins
to enter your own settings.
l Align Lefts
l Align Centres
l Align Rights
l Align Tops
l Align Middles
l Align Bottoms
Exercise - Alignment
1. Create several labels on the same band.
2. Select the controls that you wish to align by either dragging a box around the relevant con-
trols. Multiple controls can also be selected by holding down the CRTL key and selecting
the controls one by one. Individual controls may be selected by simply clicking on them.
The example below shows three labels aligned using the Align Left tool. Note that the small rect-
angles around the labels denote that the label is currently selected.
The tools available for the layout of controls on the page are:
l Size to Grid
l Centre Horizontally
l Centre Vertically
l Send to Back
Exercise - Layout
1. Create several labels on the same band.
2. Select the labels to alter their layout by either dragging a box around the relevant labels or
by selecting individual labels by holding down the CTRL key while clicking on the labels.
The example below shows three labels before and after having the layout set using the Make Hori-
zontal Spacing Equal tool. Note that the tool moves the labels such that the spacing between the
labels is the same. It does not affect the spacing between the labels and the page boundaries.
Snap to Grid
The report snap grid can be switched on or off in the Report Properties under the Miscellaneous
tab with the Draw the Grid property. This is where you can also set the Snap Grid Size, Snap
Grid Step Count and Snapping Mode.
This shows the report with Draw the Grid switched off.
The Paper Kind, Margins and Printer settings can be configured on the Page Settings tab.
The Picture Box is still 25mm by 25mm. This grid is size 25 with 10 squares by 10 squares making
a large square.
The Picture Box is still 25mm by 25mm. This grid is size 50 with 5 squares by 5 squares making a
large square.
Snap Lines
When the Snapping Mode is set to a Snap Lines option, report elements are aligned using snap
lines. In the image below, the lowest element is being lowered but kept aligned to the other ele-
ments, as seen by the pink line. The pink line will disappear when the element is moved too far off
the virtual line.
2. The report should be set up with a Group Header, three controls and a sort as shown in
the following images.
3. Select the label which is placed in the Group Header band (PROJECT), expand the
(DataBindings) property in the Property Grid panel and bind the label's Bookmark prop-
4. Select the label in the Detail band and bind its Bookmark property to the SITE_ID data
field.
5. Specify the same label's Bookmark Parent property to make the report's bookmarks hier-
archical.
8. Click on the A017 bookmark and notice that you are taken to the corresponding entry in
the reports output.
l The Bookmark Parent property that allows you to create a hierarchical (tree-like) struc-
ture of bookmarks. By assigning a report control's name to this property, the specified con-
trol is shown as a parent node that can be collapsed or expanded in the Document Map's
tree.
l The Bookmark property that defines the title of the root bookmark in the Document Map's
tree. This bookmark is linked to the beginning of a report's first page. By default a report's
Name is used as the root bookmark's title.
Best practice is to rename labels which are used as bookmarks with meaningful names so that it is
easy to map the parent bookmarks.
The following is a complete list of controls for which the Bookmark property is available:
l Chart
l Check Box
l Bar Code
l Page Info
l Panel
l Picture Box
l Pivot Grid
l Rich Text
l Shape
l Table
l Table Cell
l Zip Code
3. Click on the label and examine the Appearance properties in the Property Grid. Try
changing the values in the appearance settings to see the effects on the output.
If a report element has a style assigned to it, the priority of the properties defined by
this style is determined by the Style Priority property. Enabling an option in Style Pri-
ority settings of the Property Grid means that the local Appearance settings are
used to determine how the output is displayed rather than any of the stored style
A style that is assigned to a band applies to all of the controls that the band contains.
A style defines the same appearance properties that are defined by a control's (or band's)
Appearance properties. So, if a certain property is set both in the styles and in the control's own
appearance property, a priority is required to decide which of the properties to use. This is what
the Style Priority property is intended for.
By default, all the Style Priority's options (Use Background Colour, Use Border Colour,
etc.), which follow the structure of the style's and appearance properties, are set to Yes. This
means that if any style is assigned to a control via its Styles property, all its properties will have
a higher priority than the properties stored in the control or in its parent. If you want some of the
properties to be determined by a control (not by its style), set the corresponding property to No.
3. In the Property Grid for the label, set the BackGround Colour to GreenYellow.
5. Set the value of the Style Priority to Use Background Colour. This means that the local
style set in the Appearance properties has the higher priority and so the label will appear
with a OrangeRed background (see image on the following page).
6. Set the value of the Style Priority for BackGround Colour to No. This means that the
local style set in the Appearance properties has the lower priority and so the label will
appear with a GreenYellow background (see image on the following page).
The following image shows the results from altering the Style Priority property.
In this dialog, choose the required preset or specify a custom format, and then click OK.
In a similar way, for the Label control you can apply formatting to the Navigation URL (for
example, to add the https:// prefix to the link's contents), Tag and Bookmark properties. The set of
bindable properties varies with the control type.
Two types of formatting allow you to tailor your date formats:
l Special allows you to add a prefix and/or suffix to an item of data. This is useful for
labelling and adding units.
l Custom allows you to define any format using the standard format specifications syntax.
Formatting Summaries
Note that the Summary object has its own Format String property, as seen in the following image:
3. Click on Substitution Parameters and click the plus sign to add a substitution para-
1. Click on Data Sets and click the plus sign to add the dataset for the report.
3. Create labels and perform the data binding for the Project and SITE_ID fields in the
report's Detail band.
4. Add a group header entry and the page numbers as shown below.
5. Save your work, close all open windows and return to the Advanced Reporting node.
6. Execute the report. Enter the value for the Project (Exploration) in the Substitution
Parameters form and click OK.
The report output consists of data which has a value for the PROJECT field which is
equal to the parameter value (Exploration in this case) inserted.
After you've bound your report to data, you can use the Add a Group and Add a Sort buttons, to
choose new grouping and sorting criteria. You can adjust the precedence of these criteria, using the
Move Up and Move Down buttons.
You can also specify the sorting order for each level (ascending or descending) and choose
whether the corresponding Group Header and Footer bands should be displayed.
Simple Grouping
Grouping allows you to split data into groups based on data with identical values in one or more
fields.
The easiest way to group data is to use the Group and Sort panel. The following procedure shows
how to create groups of SITE_ID's based on records having the same value for the PROJECT field.
The PROJECT fields are then sorted in Descending alphabetic order.
2. Drag a label onto the GroupHeader1 band and change its contents to "Project".
3. Drag the PROJECT field from the Field List and place it next to the Project Label.
4. Drag a label onto the detailBand1 band and change its contents to "Hole Number"
5. Drag the SITE_ID field from the Field List and place it next to the Hole Number Label.
6. Click on the Report's smart tag and add Sites to the Data Member field.
7. In the Group and Sort panel, click Add a Group and select the PROJECT field from the
pop-up list.
The first page of the report shows the data grouped by PROJECT and will look as follows:
Now you will add Hole Depths and calculate some summary statistics for each PROJECT.
1. Drag a label into the detailBand1 band and change its contents to "Depth".
2. Drag the END_DEPTH field from the Field List and place it next to the label on
detailBand1.
3. On the GroupFooter1 band, drag a label and change its contents to SUM.
4. Drag the END_DEPTH field from the Field List and select the field.
5. In the Label Property Grid, select Data | Summary and clip on the ellipsis (...) to open
the Summary Editor.
7. On the GroupFooter1 band, drag a label and change its contents to AVERAGE.
8. Drag the END_DEPTH field from the Field List and select the field.
9. In the Label Property Grid, select Data | Summary and click on the ellipsis (...) to open
the Summary Editor.
10. In the Summary Editor, select Average from the Summary function drop-down list and
select an integer format from the Format string. Select Group from the Summary
Running radio buttons. Click OK.
l includes a wide variety of chart types and analysis tools to meet all of your charting needs
l allows you to visualise almost any type of data, regardless of the data source type
l Smart features and automation: smart series point labels, auto-adjustments to familiar
data sources (such as the Pivot Grid), automatic scale breaks, automatic axis scale and
scrolling range adjustments, as well as automatic date-time modes for the axis of argu-
ments.
l Display of multiple series of diverse types: compatibility of series of different types in the
same diagram, and support for an unlimited number of panes and secondary axes, and
scale breaks and logarithmic axis scales.
A-D F-R S
Step Line 3D
Exercise - Charts
If you are editing an existing chart, you can manually start the chart wizard by clicking the
smart tag and selecting Run Designer...
2. Select Advanced Report and fill in the Name and Description details for the chart.
3. Select Data Sets and view the SQL Script Properties that determines what data is avail-
able for the chart.
5. In the Report Designer, drag and drop the Chart control from the Standard Controls
Toolbox tab onto the Detail band.
Chart Designer
1. Select Point from the available chart types.
2. From the Options tab at the right, choose from the available Appearance options and
Palettes to determine the colour settings for the graph.
3. Create a data series by clicking the + sign at the right of the Series label.
Report Design
The first consideration when creating a report is visualising the output. This helps to determine the
elements that will be required. For example, in the case of displaying the depths of drillholes, the
objective is to create a chart for the drillholes in a particular Project.
l From a data point of view, this would require the Project, Site ID and End Depth inform-
ation.
l From a layout point of view, the chart wants to show the data for all drill holes combined,
not a graph for each drill hole. This can be achieved by placing the chart in a Group
Header.
Visually, a simple Bar Chart would suffice. Being the depths of drill holes though, it would look
slightly different from normal bar charts; starting the Y axis at the top of the window. This option can
be configured, as shown in "Insert a Simple Bar Chart".
If you are editing an existing chart, you can manually start the Chart Designer by clicking
the smart tag to open Chart Tasks and select Run Designer.
2. Select Advanced Report and fill in the Name and Description details for the chart.
4. Select Layout and click on the Launch Designer icon to bring up the Report Designer
screen.
6. In the Report Designer, drag and drop the Chart control from the Button Bar tab onto the
Detail band.
2. The Chart Designer will display a bar chart. It is advisable to name your objects, so
change the Name to Depths. Also check Show in Legend as shown.
3. Click on the Data tab. Select your datasource if that has not auto-populated. Under
GBSite, drag SITE_ID onto the Argument box below and then drag END_DEPTH onto
1. For instance, to show the chart with the horizontal bars, rather than vertical, click on the
XY-Diagram item in the left-hand panel. In the right-hand panel, select the Rotated
check box. The chart is rotated by 90 degrees to make the bars horizontal. This does not
fit with the design plan, so uncheck it again to return to vertical.
3. To change the chart colours, click on Chart at the top in the left-hand panel. On the right
under Options, explore Appearance and Palette. In the example, they have been left on
Default.
5. Add labels for the X and Y axis. To do this, first click on the Axes object, then click on the
X axis. Click on the Elements tab and fill in the properties as shown below:
6. Change the Primary axis using the drop-down list. Fill in the properties as shown below:
7. Close the Report Designer, then click OK on the Property Editor: Advanced Report to
save your changes.
Table Structure
A Table contains one or more Table Row objects (accessed via the Rows property), and each row
contains one or more Table Cell objects (accessed via the Cells property). The structure of a table
is reflected in the Report Explorer.
You can manage a table's rows and their cells either using Report Explorer or using the context
menu that is shown by a right-click over the Table control.
l Example: To add a new row/column/cell, right-click a cell and, in the invoked context
menu, choose the appropriate option in the Insert sub-menu.
The most important properties of a cell are available in its smart tag.
"Report Controls"
5. Fill in the SQL Script Properties form as shown below, then click OK.
6. Select Layout and click on the Launch Designer icon to bring up the Report Designer
screen.
To do this, open the Toolbox Standard Controls tab and click the Table item. Then, in
the GroupHeader band, click and hold down the left mouse button while dragging the
cursor across the detailBand1 band. You could achieve the same result by individually
setting up two tables, one in the Group Header1 band and another in detailBand1.
9. Double-click in tableCell1 and enter the appropriate column label, Project in this case.
Repeat for the remaining table's cells with the labels Hole Number and Hole Depth.
If you want to add a column to the table, right-click in the right-hand side table cell, select
Insert and then select Column to Right in the drop-down menu
In the report, the table heading cells have also been automatically shifted as shown
below:
3. Change the cell size by clicking on a table boundary and dragging the cell to the desired
size. Using this method you can alter both the width and height properties of a cell. Resize
To improve the appearance of the report, you can customise certain table parameters.
The properties box is located to the right of the Report Designer and will show the prop-
erties for the selected cell.
2. Define values for the Borders properties of both tables (set Borders All ).
3. Customise text appearance for each table header cell, using the formatting toolbar. Set
the font size to 14, select Bold text and change the colour of the text to blue
1. To set the property to Yes, click on the smart tag for GroupHeader1, select Edit and
reorder bands...
The following report output demonstrates the use of the Repeat Every Page property. Notice that
the header band, which is seen in the Blue text, is repeated on every page.
If the Repeat Every Page property is set to No, the following output is seen. Notice that the header
is only displayed on the first page.
3. Click the plus icon to add a new Data Set called Sites from the GB_SITE table.
4. Fill in the SQL Script Properties form as shown below, then click OK.
5. Click the plus icon to add a new Data Set called Projects from the Projects table.
7. Click the plus icon to add a new Data Set called Master from the Projects table.
8. Fill in the SQL Script Properties form as shown below, then click OK.
9. Select Layout and click on the Launch Designer icon to bring up the Report Designer
screen.
11. Drag the Title field from the Master dataset in the Field List into the
ReportHeaderBand1 band and adjust the size of the box to allow space for the report
title.
12. Drag the PROJECT and DESCRIPTION fields from the Project dataset (Master) into
detailBand1. Add a Line object from the Standard Controls to improve the clarity of the
output.
13. Drag a label into GroupHeader1 and change the contents to "Depth of All Drillholes in
this Project". This becomes the Title for each individual detail report for each Project.
14. Right-click in detailBand1 and then select Insert Detail Report | "Projects_Sites".
16. Since the field length for the fields above is very small, set the properties for the Detail
band to repeat the data in three columns across the reports output page.
17. Click on the Print Preview tab to see the output for this report.
In the Designer, double-clicking on a subreport opens its associated report in a new Design Panel
tab.
2. Fill in the Name and Description fields for the Advanced Report properties.
5. Fill in the SQL Script Properties form as shown below, then click OK.
7. Add two Table controls to the GroupHeader and Detail bands of the report.
8. To do this, open the Toolbox Standard Controls tab and click the Table item. Then, in
the GroupHeader band, click and hold down the left mouse button while dragging the
cursor across detailBand1 . You could achieve the same result by individually setting up
two tables, one in Group Header1 band and another in detailBand1.
9. Drag and drop the PROJECT, SITE_ID and END_DEPTH fields from the Field List win-
dow into the table cells as shown below:
11. Right-click in GroupHeader1 and add a pageHeaderBand to the top of the report.
12. Drag a Sub Report control into pageHeader1, select the sub report control and set the
properties for the subreport you wish to insert into the report header. For the Report
Source URL, click the drop-down list and select 361: Header Subreport from the list of
available reports. Note that the numbers will differ in your drop-down list.
14. Similarly, drag a Sub Report control into pageFooter1, select the sub report control and
set the properties for the subreport you wish to insert into the report header. For the
Report Source URL, click the drop-down list and select the Footer Subreport from the
list of available reports.
15. Click on the Print Preview tab to view the results. The first page is shown below. Note the
header and footers from the subreports you have created.