Users who have some familiarity with other report writers will recognize the banded-style interface of the Report Designer. Report elements can be added and modified within the Designer window and then the resulting report can be previewed in the preview window.
Each group within the designer interface represents a different report section. The section names are listed on the buttons to the left of each report group.
This section is like the title of the report. It appears only once at the top of the report.
Any element placed in this section will appear at the top of every page of the report.
This section serves as a header to the detail or data section of the report. By default, it only appears once in the report.
This section appears in reports with grouped data (i.e. master & details report), or data with row breaks inserted (i.e. summary break report). It repeats at the top of each grouping within the report.
This is the main section of the report that contains most of the data. Data columns that have been selected for the report are placed in this section and are repeated for each entry in the column.
This section appears on reports with grouped data (i.e. Master & Details report) or data with row breaks inserted (i.e. summary break report). It repeats at the bottom of each grouping within the report.
This section serves as the footer or data section of the report. By default, it appears only once in the report.
Any element placed in this section will appear at the bottom of every page of the report.
This is the last summary of footer section of the report. It only appears once at the end of the report.
There can also be nested sections in addition to the Report Header, Table Header, Group Header, Group Footer, Table Footer, and Report Footer sections. Nested sections are useful for placing sub-reports and rich text fields with variable lengths. This allows these type of elements to resize without overlapping any elements below. Nested sections inherit most of the section options from their parent sections, including page-breaking and repeating options.
To add a nested section, select Insert Section from the section options pop-up menu for the parent section. For more information about section options, options see Section 1.5.3 - Section Options. Note that if you select to insert a section from a nested section, it will inherit the same parent section (i.e. nested sections cannot be a parent).
To resize section height, place your mouse over the section divider within the design window. The pointer will change to a resize pointer. Click and drag the mouse to expand or decrease the section height.
There are several formatting and display options available for each report section. You can access the section options menu by clicking the button with the section name at the left side of the Designer or by right clicking on a blank portion of the section field.
This option is available for every section of the report. It allows you to set background color for the entire section. Selecting this option will bring up a dialog box prompting you to specify whether or not to set the background transparent. If you do not want a transparent background, uncheck the checkbox and click the button. This will bring up a dialog prompting you to specify the background color. You can select font color from swatches or enter HSB/RGB values. You can also directly enter a HEX color value to the Hex # field.
Note | |
---|---|
If there are no elements placed in a section, that section will not display. Hence, changing a section background color will have no effect on the finished report if the section is blank. |
This option is available for every section of the report. It allows you to set the section height. It has the same effect as dragging the section's bottom edge, but unlike the drag&drop method, this option allows you to set the section height precisely in inches.
This option is available for Report Header, Table Header, Group Header, Group Footer, Table Footer, and Report Footer sections. Selecting this option will add a nested section to the currently selected report section.
This option is only available for nested sections that you have added to the report (regular sections can only be rendered invisible). This option will remove the nested section from the report and delete its contents.
This option is available for Table Header and Group Header sections. Selecting this option causes the section to repeat again after every page break (group headers will only repeat if the data for that group exceeds one page).
This option is available for Table Header, Group Header, Table Data, Group Footer, Table Footer, and Report Footer sections. For the Table Data section, a new dialog will pop-up allowing you to select the number of rows to display on each page. This number will be set as a new maximum of table data rows for the page. After this amount of rows a page break will be inserted. This count does not include any formulas in the footer sections. For example, if the report contained row breaks and an aggregation calculated for each group, this element will not count towards the number of rows.
Selecting this option for any other section inserts a page break each time the section appears.
This option is only available for Group Header section(s). Selecting this option causes each group to be printed on a separate worksheet when the report is exported to Excel (XLS) or Excel 2007 (XLSX) format.
This option is only available for Group Header section(s). Selecting this option causes the report pagination to reset each time the section is run. Hence, each time the Group Header section runs, the current page number goes to 1. Note that setting this option will automatically enable the print on a new page option.
This option is only available for Group Header section(s). It allows you to control some of the pagination for grouped data. Selecting this option will cause EspressReport to try to fit the entire group on a page. If the entire group cannot print on a page, it will print on a new page. If the group cannot fit on any page, (the fields are longer than the page height), it will be broken up into multiple pages.
This option is available for Table Header, Group Header, Group Footer, and Table Footer sections. This option is a subset of the print on a new page option. Selecting this option will ignore the page break for the very first time a section is run. For example, setting this option for the Group Header section will cause the report not to insert a page break for the first time the section is run. The page break will only occur when the report runs the Group Header for a second time.
This option is only available for Group Header section. This option is a subset of the print on a new page option. Selecting this option will ignore the page break for the first value of each group of data. This option is used for nested grouping in a report where more than one group is set to print on a new page. To prevent a blank page for records where more than one grouped column value changes, the 'Skip First Group Value' can be set for the inner Group Header section.
This option only applies if you have set cells within the section to resize to fit content. If this option is selected, all cells in the section will resize with the variable height cells.
This option is available for every section of the report. Selecting this option hides the entire section. To make the section visible again, click on the Format menu at the top of the designer and select Make Section Visible option.
This option is available for every section and only takes effect if the report is exported to HTML. Since tabular HTML (not DHTML CSS formatting) does not allow selective cell borders within a table, users can select to turn on or off a border for all cells in a section when the report is rendered in HTML. If you select this option, the following dialog will appear allowing you to set options for the HTML border:
In this dialog, you can set thickness and border color by clicking the
button. This will open the color palette dialog allowing you to pick a color for the HTML border.This option will bring up scripting interfaces allowing you to write, modify, or apply a script to dynamically modify certain section attributes. For more information about this feature, please see Section 1.9.2.7 - Section Scripts.
The Report Designer has two rulers in the top left corner of the Design window. The rulers measure how the report will look in terms of the physical page dimensions. Please note that the dimensions do not include page margins. The rulers helps you to get a good idea of how the printed report will look like. You can also use the rulers to adjust the bounds of elements in your report. Selected element bounds will appear as shaded areas within the rulers and can be adjusted by clicking on and dragging the markers.
The button in the upper left corner of the Design window allows you to toggle between inches and centimeters. By default, EspressReport uses inches for measurement. Depressing the button will change the ruler measures to centimeters. If centimeter is selected, all of the manually entered values like element bounds and page margins will also be entered and displayed in centimeters.
You can set the Report Designer to use metric (cm) measurements by default. To do this, specify an additional command line argument - metricSystem:true/false
when executing ReportDesigner.bat/.sh
file. For example: ReportDesigner -metricSystem:true
will launch the Report Designer with metric measurements. You can also add this argument into the batch file.
If you are running Report Designer through an applet, you will need to add the following parameter to the applet HTML page: <PARAM NAME=metricSystem VALUE="true">
.
Most of the Report Designer's features can be controlled using the drop-down menus at the top of the designer.
This menu performs most of the file operations.
Creates a new report.
Opens an existing report (.pak/.rpt/.xml/.stl
format).
Closes the current report.
Imports and applies a template (.pak/.rpt
or .xml
) file to the current report. All of the report attributes are changed to those of the template.
Saves the current report.
Allows you to name and save the current report as a template (.pak
) file. A checkbox within the Save As window allows you to generate an applet page with the Report Viewer embedded, as well as generate an XML template.
This option exports the report to a selected format. Options include DHTML, PDF, CSV (data file), Excel (XLS), Excel 2007 (XLSX), RTF, TXT, and XML.
Prints the current report (This option is only executable from Preview tab.)
Closes the application.
This menu allows you to edit and cut/paste report elements.
Cancels the last operation performed in the Designer and reverts back to the previous state. The Designer will remember last 10 actions made.
Reverses the action of the undo command. For example, if you change the font color from black to red, you can undo this command to change it back to black and then redo this command to have it changed back to red again.
This option is available for labels, formulas, images, and charts. For labels, it will prompt you to change the label text. For formulas, it will prompt you to change the formula. For images, it will prompt you to change the image file URL. For charts, it will bring up Chart Designer to edit your chart.
This option makes a copy of the selected element and places it on the clipboard.
This option removes the selected element and places it on the clipboard.
This option pastes the current clipboard element into the report.
This will delete the selected element, except for elements in the Table Data section. It will not delete these, but render them invisible.
Removes a sub-report from the current report.
This menu allows you to insert elements into the current report.
Inserts a label element into the current report.
Inserts a formula element into the current report.
Inserts a column field into the report from the available fields (Available fields are those that have been selected for the report. See data mapping: Section 1.4 - Report Types and Data Mapping).
This option is only available if the template's data source is a database. It allows you to insert a field from a database that is not part of the original query.
Inserts a column header for one of the report fields.
Inserts a formula that returns the supplied value for a report parameter.
Inserts a new chart into the current report.
Inserts an image from a file into the report. Images can be in JPEG, GIF, or PNG format.
Inserts a new rich text into the current report.
Inserts a table of contents into the report.
Inserts a vertical or horizontal line into the report.
Inserts a grid rectangle.
Inserts a guideline into the report. Guidelines can help you move and position elements in the report. For more information about guidelines, please see Section 1.5.7.14 - Guidelines.
Inserts the current date into the report in one of three ways: Date
, Date & Time
, or Time
. The date function is actually a formula and the format can be adjusted after it is inserted. For more information about formula formatting, please see Section 1.5.7.3 - Data Formatting for Formulas and Column Fields.
Inserts the page number into the report in one of two ways: Page Number
or Page Number of Total Pages (i.e. page X of Y)
. The page number function is actually a formula and it can be formatted after it is inserted. For more information about formula formatting, please see Section 1.5.7.3 - Data Formatting for Formulas and Column Fields.
Inserts a new or pre-existing sub-report into the current report. For more information about sub-reports, please see Section 1.11 - Sub-Reports.
The format menu contains formatting options for the currently selected element within the report. Some menu options will not work depending on the type of element which is currently selected.
This option is available for formulas and column fields. It will bring up the data format editor for the data type of the selected element, either string
, numeric
, date/time
, or Boolean
.
This option is only available for charts. When reports are exported to DHTML format, charts are converted to static images. This option allows you to specify the image properties for the chart upon export.
This option is available for every report element. It will bring up a dialog box that allows you to adjust attributes depending on the selected element (e.g. bounds, background color, alignment, font style and size, rotation, border/round corners, data format).
This option is available for labels, formulas, and column fields. It brings up a dialog box prompting you to change the font appearance and the size of the selected element.
This option is available for labels, formulas, and column fields. It allows you to adjust the background color of the selected element.
This option is only available for elements in the Table Data section of the report. It allows you to specify alternating background colors, font colors, and font styles for the selected column, as well as the number of rows between changes or on which column field to base the change.
This option is only available for lines. It allows you to set the color and the thickness for the selected line(s).
This option is available for every report element. It allows you to specify thickness (in pixels), and color and shape of corners (sharp or round) of the border drawn around the selected element. The border thickness/corners can be set individually for the each side/corner of the element.
This option is available for all elements except column fields. It allows you to hyperlink an element to a web page or another report.
This option is available for all labels, formulas, and column fields. It allows you to create a script and apply conditional formatting to the selected element.
This option is available for all labels, formulas, and column fields. It allows you to rotate the element 90 degrees clockwise or counter-clockwise.
This option allows you to set the z index for the selected report element. The z index controls how report elements behave (i.e. which one appears first) when placed on top of each other.
This option is available for every report element. This feature allows you to manually enter the boundaries of an element. The measurements will be in inches or centimeters depending on which unit is selected with the toggle button in the upper left corner of the Designer window where the rulers meet.
This option is available for labels, formulas, and column fields. It allows you to align the selected element horizontally to the left, center,right, as well as vertically to the top, middle,or bottom.
This option is available for labels, formulas, and column fields. It allows users to enable or disable word wrapping within report elements.
This option is available for labels, formulas, and column fields. It causes the height of the selected element to adjust dynamically to fit its content.
This option is only available if you deleted an element in the Table Data section, or if you selected an invisible data column from the column options screen of the Report Wizard. It allows you to render any invisible column visible.
This option is only available if you rendered a report section invisible (See Section 1.5.3 - Section Options). It will make the section visible again.
This option is available for elements in the Table Data section or for report sections. It will make the selected element invisible.
This option allows column fields to be wrapped, so rather than breaking to the next page at the end of the page, they will continue next to the original column field within the current page.
This option will shrink all elements within the report to fit the report within the page width.
This option allows the position of two elements to be swapped in the report. Elements must first be selected using CTRL+Click.
The view menu contains options allowing you to navigate through the report in the Preview window and sort the data. It is only active when you are previewing the report.
This option will navigate to the first page of the report within the Preview window.
This option will scroll back one page within the Preview window.
This option will scroll forward one page within the Preview window.
This option will navigate to the last page of the report within the Preview window.
This option will prompt you to enter a page number and then navigate to that page of the report within the Preview window.
This option opens up a second menu allowing you to select one of the report columns to sort the report in ascending order (either numeric or alphabetical).
This option opens up a second menu allowing you to select one of the report columns to sort the report in descending order (either numeric or alphabetical).
This opens a dialog which allows you to select nested sorting in a report (by more than one column). The direction of the sorting can be set for each column.
This will load the entire report in the page viewer window. For more information about this feature, see Section 1.6.2.4 - Using Page Viewer.
The data menu contains options that allow you to see and manipulate the data used in the current report and its properties.
This option will re-query the data source used for the current report and then update the report.
This will re-open the Report Wizard, allowing you to change data mapping for the current report.
This will re-launch the Data Source Manager, allowing you to modify or change the report's data source.
If the report uses a database as the data source, this option allows you to modify the connection information that the report uses to connect to the database. For more information about this feature, please see Section 1.3.2.5 - Editing Database Connections.
If the report uses a database as the data source, this option allows you to modify the query used to retrieve the report data. For more information about this feature, please see Section 1.3.2.4 - Editing Queries.
This option will bring up a window that displays column mapping for the current report. The window displays the column index, name, data type, options, and whether it is currently visible or invisible.
This option will bring up a window containing the data table from which the current report is generated. The table will initially display only the first 20 records. Clicking on the Show All Records checkbox will display all of the records in the data table.
This option will bring up a window containing information about the data source that was used to create the template. The data source type, location, and the data registry location will be displayed.
This allows you to link parameters defined within sub-reports to parameters in the main report or to the parameters defined in other sub-report. With this feature enabled, reports can share a user supplied parameter value automatically without having to pass the value to each sub-report. For more information about sub-report, see Section 1.11 - Sub-Reports.
This allows you to link parameterized sub-reports to column fields in the primary report. For more information about sub-reports, see Section 1.11 - Sub-Reports.
This allows you to link parameterized charts (with an independent data source) to column fields in the report. For more information about this features, see Section 3.3.1.1 - Chart Parameter Linking.
This option is only available when you preview a multi-value drill-down report. It allows you to select values to use when drilling to the next level. For more information about drill-down reports, please see Section 1.10 - Drill-Down.
This will bring up the security settings dialog for the currently selected cell. For more information about the template security, please see Section 1.12 - Template Security.
This option is available for all elements in the report. It will bring up a window displaying the properties of the selected element including its ID value, as well as column index, name, and data type for column fields.
This option allows you to specify which defined security level you want to use when previewing the template. For more information about the template security, please see Section 1.12 - Template Security.
This option allows you to turn on/off live data for the preview window as well as set the maximum number of records that should be returned when previewing the report.
This will bring up the parameter security dialog, allowing you to assign parameter values to security levels. For more information about the template security, please see Section 1.12 - Template Security.
This option allows you to enable/disable parameter prompting when you preview the report.
The drill-down menu contains options that allow you to add, remove, and navigate layers of drill-down within the report. For more information about drill-downs, please see Section 1.10 - Drill-Down.
This option brings up the drill-down navigation window allowing you to edit, add, and remove layers of drill-down.
This option allows you to link the currently selected element to a drill-down layer.
This menu contains display and printing options
This option turns on/off the report explorer display. For more information about the explorer interface, see Section 1.5.8 - The Report Explorer.
This option allows you to customize the page size and margins. The measurements will be in inches or centimeters depending on which unit is selected with the toggle button in upper left corner of the designer window where the rulers meet.
This option allows you to specify the page title that is generated when the report is exported to DHTML format.
This option allows you to set the page background color for the report. Specifying a color here will color the entire page in Report Viewer and when exporting to DHTML or PDF. Any non-transparent section color or report element background color will draw over the background color.
This option allows you to specify a background image for the report.
This option allows you to control the settings for the snap to grid feature. You can turn the feature on/off, as well as control the step size.
This allows you to map system (true type) font files for the PDF export. For more information about this feature, please see Section 1.7.2.1 - PDF Font Mapping.
This option allows the font size for text in the Report Designer and Report Viewer to be relative to the screen resolution. Turned on by default, this feature allows for more precise conversions of reports to various export formats and between installations.
This option allows you to export the style sheet (.css) file with the style definitions for the elements in the report. This style sheet file can be used to apply the DHTML export settings onto other reports. For more information about working with CSS, please see Section 1.7.2.2 - CSS Options.
This option draws the outline for all the elements in the report. It allows you to see the boundaries of all elements, as well as see elements where the text may not be visible.
This option allows you to turn the cell shifting mode on or off. If the shift mode is on, resizing and moving report elements will cause the surrounding elements to shift: accommodating the resized or repositioned element.
This option allows you to enable/disable displaying the function name, rather than the text of the function in the Design window. For more information about working with formulas, see Section 1.8 - Using Formulas & the Formula Builder.
This option allows you to show/hide a table of contents (if it is inserted).
This option allows you to set formatting for each of the different type of report elements. It will apply changes to elements currently in the report, as well as change the default properties.
This option allows you to specify the treatment of null data within the report.
The toolbar at the top of the designer offers easy access to EspressReport's most commonly used features. The first row of buttons perform the following functions:
Start a new report | |
Open an existing report | |
Save the current report | |
Export the current report | |
Apply a template to the current report | |
Undo the last change | |
Redo the last undone change | |
Cut the selected element and place it on the clipboard | |
Copy the selected element | |
Paste the current clipboard object into the report | |
Delete the selected element | |
Insert a label | |
Insert a formula | |
Insert a column field | |
Insert a rich text field | |
Insert a sub-report | |
Insert a horizontal line | |
Insert a vertical line | |
Insert a grid rectangle | |
Insert a chart | |
Insert an image | |
Insert the current date | |
Insert page number | |
Change Data Mapping | |
Change Data Source | |
Edit Query |
The first two boxes in the second row of the toolbar allows you to select font face and size for the currently selected element. Buttons in the second row perform the following functions:
Set the font style to bold | |
Set the font style to italic | |
Underline the text | |
Set the horizontal alignment to left | |
Set the horizontal alignment to center | |
Set the horizontal alignment to right | |
Edit the selected element | |
Set data format for the current element | |
Apply a script to the current element | |
Set font style, size and color for the current element | |
Set background color for the current element | |
Set border thickness, color and corner rounding for the current element | |
Set dual colors for the current element | |
Set bounds for the current element | |
Page setup | |
Limit preview display rows |
When you finish with the Report Wizard, a rough version of your report will be generated based on the mapping and it will display the options you selected. To polish the report, you may want to insert new report elements, as well as format the existing ones.
You can insert a label in one of two ways: by selecting Insert Label from the Insert menu or by clicking the button on the toolbar. After you select the option, a small box will follow your mouse pointer around the Design window. Position the box where you want to insert the label and click. A dialog box will appear prompting you to enter the label text. Click the button and the label will appear in your report.
You can insert a formula in one of two ways: by selecting Insert Formula from the Insert menu or by clicking the button on the toolbar. After you select the option, a dialog box will open allowing to select a formula to insert. To insert a formula, select a formula from the list and click the button. A small box will follow your mouse pointer around the Design window. Position the box where you want to insert the formula and click. The formula will be added. You can use an existing formula or create a new one. To create a new formula, click the button in the formula list dialog. After entering a name for the new formula, the Formula Builder window will open allowing you to construct the formula (See Section 1.8 - Using Formulas & the Formula Builder for more information about using the formula builder and formula syntax). Any formula is automatically anchored to the report section in which it is inserted. This means that the formula will reset each time the section repeats.
Note | |
---|---|
Only the text of the formula will appear in the design window (unless the formula is inserted in the Table Data section). You can choose to display the formula names instead of the text by selecting Show Formula Name from the Option menu. |
You can insert a column field in one of two ways: by selecting Insert Column Field from the Insert menu or by clicking the button on the toolbar. After you select the option, a dialog box will appear with two drop-down menus. The first one allows you to select the column field you want to insert into the report. The second one allows you to select aggregation (if any) for the column field. After you select the desired column field, click the button and a small box will follow your mouse pointer around the design window. Position the box where you want to place the column field and click. The column field will appear in the report. The column field is automatically anchored to the report section in which it is inserted. This means that each time the section repeats, the column field will display the next row in the data column.
Note | |
---|---|
The column value will not appear in the Design window (unless it is placed in the Data Table section). All that will show is the column name |
This option is only available if the current report uses a database as the data source. It allows you to add a field from the database into the report that may not have been initially selected by the query or as part of the data mapping. To insert a database field, select Insert Database Field from the Insert menu. This will open a dialog with all of the tables you have included in your query and their respective fields, allowing you to select the field you want to add. Another option allows you to select the aggregation (if any) that you want to perform on the field.
Note | |
---|---|
If the template's query contains aggregation or a |
Column headers are a unique report element that will dynamically display column header from the data source. You can add a column header by selecting Insert Column Header from the Insert menu. This will bring up a dialog prompting you to select the column for which you want to retrieve the header.
Select a desired column and click the
button. A box will then allow you to position the header wherever you want in the report. Click to add the column header.You can insert user supplied values to query or formula parameters directly into the report. To insert a parameter value, select Insert Parameter Value from the Insert menu. This will bring up a dialog prompting you to select which parameter you want to display the value for.
Parameter values are also accessible through formulas. For more information about formulas, please see Section 1.8 - Using Formulas & the Formula Builder.
You can insert an image in one of two ways: by selecting Insert Image from the Insert menu or by clicking the button on the toolbar. After you select this option, a small box will follow your mouse pointer around the Design window. Position the box where you would like to place the image and click. A new window will appear prompting you to enter the URL of the image you want to insert.
There are two ways of inserting images: either locate the image on your hard drive or retrieve it from an URL.
To locate an image on your hard drive, click the
button. If you want to use an image from a different location, insert its URL.To retrieve image from an URL, enter the URL in the Image URL text field. After that, click the button to verify the URL. If the image from the URL appears in the Preview section, the URL is correct.
Note | |
---|---|
You have to insert complete URL with protocol (e.g. |
If you save the report as PAK, the image will be stored in the PAK file along with the report.
If you want to re-open a RPT file (from an older EspressReport version) with a background image, please note that the image itself is not stored within the report. Only the path or URL is saved. If you move a RPT report, you need to be sure that it can still access the image using the specified path.
You can manually set the image dimensions in pixels, inches, or millimeters in the Dimension section.
Note | |
---|---|
If the image dimension exceeds the page dimension, the image will not be shown (although space will be allocated for that image). |
EspressReport also supports database images. You can add images from a database (BLOB format) by selecting the BLOB field as part of the query for the report. The images will be added as a column in the report. You can also retrieve images in the Table Data section via URL instead of using a BLOB field. For more information about this, please see Section 1.5.7.3 - Data Formatting for Formulas and Column Fields.
EspressReport allows you to add background images to a report. Background images will underlay all other report elements and will repeat on every page. To add a background image, select Background Image from the Option menu. This will bring up a dialog prompting you to specify location of the image, as well as several display options.
To insert a new image, select the Enable Background Image option. If you want to remove an existing background image and use simple background color instead, unselect this option.
This dialog also allows you to choose one of the Display options (Center, Fit and Tile).
The rest of this dialog is the same as the Insert image dialog described in the previous section.
To insert a line or a grid rectangle, select either Insert Line or Insert Rectangle from the Insert Menu. If you select a line, you can further select whether you want to insert a vertical or horizontal line. You can also select the corresponding icons on the toolbar. After you select a line or rectangle, a cross or a box will follow the mouse pointer around the Design window. Position the cross/box where you would like to insert the line/rectangle and click, then drag the cross to draw the line or rectangle. A line or grid will then be inserted into the report.
Note | |
---|---|
The line or grid will appear thicker than it actually is in the Design window. |
You can insert a chart in one of two ways: by selecting Insert Chart from the Insert menu or by clicking the button on the toolbar. After you select this option, a small box will follow your mouse pointer around the design window. Position the box where you want to place the chart and click. You will see the following dialog box:
You have an option to use data from the current report or use an external data source. If you choose to use the data from the report, you will be shown a preview of your dataset and you will be taken directly to the chart selection window in the Chart Designer. Otherwise, you will be given an option to either select a different data source for your chart or import a chart file created before.
Once you select your options, the Chart Designer will open in a new window, allowing you to design and customize your chart. Please see the Chapter 3 - Charting Guide for more information about using the Chart Designer.
Note | |
---|---|
The actual chart will not appear in the Design window. Instead, you will see a gray rectangle with the chart URL. You can see the actual chart in the preview window. |
If your report contains grouping (Summary Break, CrossTab, or Master & Detail Reports), you will also have the option to Include Section Data. If you select this option, you will be able to use group aggregations that are located within any section that the chart encompasses. This means that you can create charts using data from any aggregation located in the same section as the chart or in any inner sections.
For example, if you were to create a Summary Break Report with two row break columns, this will result in two group header and two group footer sections. Assuming we have a group aggregation for a column in your report, the report might look like this:
If you position the chart in the inner group header (Group Header 1) or inner group footer (group footer 1), you will only be able to use the group aggregation for the inner section in your chart (the aggregation in Group Footer 1). If you positioned the chart in the outer group header (Group Header 0) or outer group footer (Group Footer 0), you will be able to use the aggregation for the outer section as well as the inner section in your chart because the outer section encompasses the inner section. Positioning the chart in the table header or table footer sections will allow you to use any group aggregation in the report.
Suppose you moved the column headers to Group Header 1 and positioned the chart in Group Header 0 as shown below.
When you see the data mapping window in Chart Designer, you will be able to use the summary data from both Group Footer 0 (TBL0_F_SEC0_FORM0) and Group Footer 1 (TBL0_F_SEC1_FORM0).
To make the aggregation easier to recognize, you can use Custom IDs. For more information about using Custom IDs, see Section 1.8.2.1 - Using Column Field Data.
The resulting report will look like the image below. Notice that the chart plots the aggregation for each company. If you used the aggregation from Group Footer 0, the chart would have shown the aggregation for each region instead.
Since the chart is placed in Group Header 0, a new chart will be displayed for every region. The above image shows the chart for the East region only, but the report will contain charts corresponding to each of the other regions as well. Here is the chart for the Midwest region:
Keep in mind that if you select the Include Section Data option, the data available for the chart will vary between sections, so moving the chart between sections is not recommended. If you need to move the chart after it is made, make sure that the data mapped to the chart is also available from the location where you are moving the chart to.
Here is another example using Include Section Data. Suppose you had the following CrossTab report and you wanted to use the aggregation for each column as data points in your chart.
To make the aggregations easier for later use, give each group aggregation a Custom ID that matches their column header. For example, give SUM(COL(1))
the ID SumEast
, give SUM(COL(2))
SumMidwest
and so on. For more information about Custom IDs, see Section 1.8.2.1 - Using Column Field Data. Then insert the chart in the Table Footer Section using Report Data and Include Section Data.
The formulas with custom IDs will be visible in the data source preview (if you selected the Include section data option).
Since the data points are in different aggregations, you will need to use the transpose feature. To learn more about data transposition in charts, see the Section 3.4.1.1 - Data Transposition chapter.
In the data mapping window, select the Multi Selection option for the Category (X). This option allows you to select multiple columns for the category. Select all the formulas with custom IDs. The Value (Y) should be automatically set to Value.
Depending on the type of chart you select, the finished report might look like this:
You can also insert summary charts into crosstab reports. A summary chart is a type of chart that is created from summarized data of a fixed-field crosstab report. For more information about crosstab reports, please see Section 1.4.3 - Crosstab Report.
When you are going to insert a chart into a crosstab report, you will still have the option to use data from the current report or use an external data source. Otherwise, you will be given an option to select a summary data source for your chart or import a chart file created before. Note that a summary chart can only be inserted into the Table Header/Footer sections, depending on the Formula Position. For example, if you created a fixed-field crosstab report with the formula position set to be drawn in the Header section, you can only insert a summary chart into the Table Header section. If you try to insert a chart to other report sections, the Summary Data option will not be available in the Insert Chart dialog.
For example, say we have the following data mapping for a crosstab report:
We selected Day
as a Row Break field, Drink
and Timing
as Column Break fields, Quantity
as a Column Break Value field with an aggregation of Sum
. We also chose the Formula Position to be drawn in the Table Footer section of the report, which means we have to insert the summary chart into the Table Footer section in which data will be summarized.
Inserting a summary chart into the table footer section and selecting the Summary Data
as datasource in the Insert Chart dialog will show the following Query Result dialog. The dialog shows data that will be used for a summary chart.
Depending on the type of chart and formatting you select, the finished report might look like this:
Generally, when elements are inserted into a report section, they will repeat each time that the report section repeats. However, this does not apply when certain elements are inserted into the Table Data section. Charts, images, and sub-reports do not repeat for each row of data (labels, column fields, and formulas do) when inserted into the Table Data section. This allows you to design a report in a side-by-side configuration where you might have a chart or in sub-report placed next to a data table as pictured below.
Normally, when you insert a chart, image, or sub-report into a report section, you will want to resize the section so that the entire element fits within the section (otherwise it is truncated). This is not the case for charts, images, or sub-reports inserted into the Table Data section. In this situation, you will want to keep the section the same height as your column fields regardless of the size of the element you're placing in the section.
You can resize an element in the Table Data section using the rulers or by temporarily resizing the section to adjust the element size.
You can edit elements in one of four ways: by selecting Edit from the Edit menu, clicking on the button in the toolbar, right clicking on the element, and then selecting Edit from the pop-up menu, or by double clicking on the element.
When you select the Edit option for a label a dialog box will appear prompting you to change the label text. Click on and the label will be changed.
When you select the Edit option for a formula, the Formula Builder will appear prompting you to change the formula. Make any changes you want, then click the OK button and the formula will be changed.
Note | |
---|---|
If you use the same formula in more than one place in the report, modifying the formula will change it everywhere. You can avoid this by clicking the button in the Formula Builder. This will allow you to specify a new name for the modified formula and modify it only for the particular element. |
When you select the Edit option for a chart, the Chart Designer will open, allowing you to edit and format the chart.
When you select the Edit option for an image, a new window appears prompting you to select a new image or directory URL. After selecting the new image, click the button and the new image will replace the old one.
Column header is a unique type of report element that is generated when you first create the report. By default, column headers are dynamic and will display the name of the column even when the column changes (by changing data mapping, source, or applying a template). When you select to edit a column header, a dialog box will appear prompting you to change the text of the header.
When you edit the header, a new text will be displayed. However, the header will no longer be dynamic. You can return the header to display the (dynamic) column name by right clicking on it and selecting Original Column Header from the pop-up menu.
You can also copy and paste cell attributes between report elements. This will apply all attributes including data formatting (assuming the data types are the same), alignment, font, color, and border attributes, as well as the bounds of a cell.
To copy the attributes of an element, right click on the element and select Element Appearance from the pop-up menu. This will expand into two additional choices. Select Copy from the second menu. To apply the copied attributes to another cell, repeat the same steps as before and select Paste from the secondary menu.
In addition to directly editing an element, you can directly access all of the element's attributes by selecting Edit Attributes option from the Format menu, or by right clicking on an element and selecting Edit Attributes from the pop-up menu. This will bring up a tabbed dialog that allows you to set a number of properties for the element at once.
The options will vary depending on what type of element you select. For each tab in the dialog, you can set the option you want and then click the
button to set the changes for that attribute.By default, any text within report elements, including labels, formulas, and columns will wrap to the next line if the cell boundaries are not wide enough to fit the text. However, this behavior can be disabled. To set text wrapping, select an element and select
→ , or right click on an element and select the option from the pop-up menu. This will disable/enable text wrapping.To disable word wrapping, un-check the option. Note that when word wrapping is disabled, the entire contents of the cell will be printed regardless of the cell boundaries. This can overlap and obscure other report elements. Also, word wrapping cannot be disabled for rich text fields as the rich text and Excel-based exports will still display the wrapped text.
As noted in Section 1.4.4 - Master & Details Report of this guide, you can specify a side-by-side layout for master & details reports. This will print the master field (group header) next to the details section (table data), rather than its traditional position above the details section. When you select this report format, the master section will appear as a gray rectangle next to the column fields within the table data section of the report.
The master section can be moved in free-form like any other report element. You can edit the contents of the master field in one of three ways: selecting it and clicking the Edit from the pop-up menu, or double clicking it. The master section will open in a new window, allowing you to modify its contents.
button on the toolbar, right clicking it and selectingThe elements in this section can be moved, resized, and edited in the same way as other elements in the report. The master section acts the same as a group header section. It repeats for each unique value in the primary key column. After you finish editing the contents of the master section, it can be closed by selecting Close from the File menu.
Note | |
---|---|
After you finish editing the master section, it will automatically resize to fit its contents. |
You can change the output of formulas and column fields in one of three ways: clicking the icon in the toolbar, selecting Data Format from the Format menu, or right clicking on a formula or column field and selecting Edit Attributes from the pop-up menu. When you select the format option, a dialog box will appear (or the format tab of the multi-attribute editing dialog). The box that appears depends on what type of data is present in the selected element: numeric, string, date/time, or logical/boolean.
The dialog box for numeric data contains four primary options for the data: locale-specific fixed point, fixed point, bar code, and scientific. You can select the option you want and then click on format for additional options.
This will change the data format depending on the locale in which it is being viewed. Additional formatting for this option allows you to specify whether the data should be displayed as a number, currency, or percentage. Additionally, you can set the maximum and minimum number of integer digits and fraction digits. Other display attributes will vary depending on locale.
This will keep the data format consistent, regardless of locale. Additional formatting for this option allows you to set the number of decimals, rounding for digit number, unit symbols, negative sign positions, decimals and thousands separator, and specify leading zeroes for fractions.
This will convert the data into a bar code. Additional formatting for this option allows you to select the symbology to use for the bar code. Supported symbologies are Code 39 with and without checksum, Interleave 2 of 5, UPC A, EAN 13, EAN 128, Standard 2 of 5 with and without check digit, Code 128, Code 128A, Code 128B, Code 128C, USD 3 with/without checksum, Code 3 of 9 with and without checksum, Global Trade Item Number, Random Weight UPCA, SCC 14 Shipping Code, Shipment Identification Number, SSCC 18, and US Postal Service.
This will display the data in scientific notation. Additional formatting for this option allows you to set the number of decimals.
After you finish selecting additional options, click the
button to return to the main dialog box. Click the button and the data format will be changed.The dialog box for string data contains four primary options: string, image URL, text URL, and bar code. You can select the option you want and in the case of string or bar code, click
for additional options.This dialog allows you to format the appearance of the string. The checkbox labeled Show Original Text controls whether the complete string for each data entry will be displayed. If you un-check it, you can then specify the maximum number of characters to be displayed. Click the button to return to the previous dialog.
This will convert the string into an image. This is used in situations where instead of storing an image as an object in a database (BLOB), you have stored URLs that point to image files on a server. Selecting this option will read the URL and retrieve the images to be placed in the report.
This will convert the string into a large text object. This is used in situations where instead of storing a large text file as an object in a database (CLOB), you have stored URLs that point to files on a server. Selecting this option will read the URL and retrieve the text files to be placed in the report.
This will convert the data into a bar code. Additional formatting for this option allows you to select the symbology to use for the bar code. Available symbologies for string data are Code 39 with/without checksum, Code 2 of 7 (Codabar), Codabar, EAN 128, Code 128, Code 128A, Code 128B, Code 128C, Global Trade Item Number, Monarch, NW 7, SCC 14 Shipping Code, Shipment Identification Number, SSCC 18, US Postal Service, and USD 4.
Note | |
---|---|
Codabar will not accept start/stop characters in the data. If the input data is incorrect, the bar code may not be readable. |
The dialog box for date/time data contains two primary options for the data: locale-specific and standard. You can select the option you want and click the
button for additional options. The available additional options will vary depending on the nature of your data. Date, time, and timestamp data will bring up date, time, and date & time options respectively.This will change the format of the data depending on the locale in which it is being viewed. Additional formatting for this option allows you to select full, long, medium, or short notations for date and time information. Other display attributes will vary depending on locale.
This will keep the data format consistent, regardless of locale. Additional formatting for this option allows you to select year and month displays, as well as the order in which month, day, and year information is presented. You can also select the characters to be used as separators. Time options allow you to display hours, minutes, and/or seconds, and select the separators between them. For timestamp data, you can select to display the time before or after the date and the separator to be used between them.
After you finish selecting additional options, click the
button to return to the main dialog box. Click the button and the data format will be changed.The dialog box for Logical or Boolean data contains five options for displaying the data. They are: T/F, True/False, Yes/No, Y/N, and 1/0. Select the format you want to use and then click the
button to change the data format.By default, null data will display in a report as Null
. You can change the appearance of null data by selecting Null Data Handler from the Option menu. This will bring up a dialog, prompting you to specify a string to be displayed for nulls.
Enter a value you want and click the
button. All the null values in the report will be displayed as the value you specified.You can format the appearance of lines and rectangles in the report by right clicking on a line or rectangle element. The pop-up menu will contain a list of available options.
There are three formatting options for lines. Line Color & Thickness allows you to set the color and thickness of the line. Line Style allows you to select the style of line - either solid, dotted, or double. Set Bounds allows you to specify the length and thickness of the line, as well as the X and Y coordinates of its origin. In addition, you can set the width of horizontal lines to match the aggregate width of columns in the report. This feature is useful for crosstab reports where the number of columns can vary and also for user-defined report styles. For vertical lines, you can set the length to match the section height.
There are four formatting options for grid rectangles. Border allows you to set the border thickness and color for the grid rectangle. Background allows you to set a background color for the fill area of the rectangle. Set Bounds allows you to specify the width and height of the grid rectangle, the X and Y coordinates of its origin, as well as the degree of rounding for the corners. Border Style allows you to select the line style of the border - either solid, dotted, or double.
This option allows you to specify attributes for charts exported to DHTML. You can format the chart export properties by selecting Chart Export Format from the Format menu or by right clicking on a chart and selecting Export Format from the pop-up menu. When you select this option, a dialog box will appear. You can select GIF, PNG, JPEG, or FLASH for the image type and set some options for each type. For GIF images, you can set the background to be transparent. For PNG images, you can set the compression. For JPEG images, you can set the quality (Image quality is directly proportional to file size). For FLASH images, you can enable animation and set the frame count and frame rate.
You can also specify to create an image map when the report is exported. If you create an image map, the hyperlinks defined in the chart will be active when the report is exported. If no hyperlinks are defined, the map will contain display pop-up labels for the chart containing data point information. Note that FLASH images do not support image maps.
You can change the appearance of report elements by changing the font, color, and border properties.
The font style and size can be adjusted for labels, formulas, and column fields in one of three ways. You can directly modify the font style and size using the options in the Report Designer toolbar. In addition, you can also select Font Style and Size from the Format menu or right click on a report element and select Edit Attributes from the pop-up menu. The latter two options will invoke a separate dialog prompting you to select the font style and font size or in the attribute editing dialog, where font options can be set in the 'Font Style and Size' tab.
Note | |
---|---|
You can use any fonts from the system when designing a report. However, these fonts may no longer be present when you move reports between platforms. Also, you will have to explicitly map font files (.ttf) to font styles when exporting a report to PDF. For more information about this, please see Section 1.7.2.1 - PDF Font Mapping. |
The alignment for labels, formulas and column fields can be adjusted in one of three ways. You can directly adjust the horizontal alignment for an element by selecting the option(s) from the toolbar. You can also select Alignment from the Format menu, or right click on the element and select Edit Attributes from the pop-up menu. The latter two options also allow you to select vertical as well as horizontal alignment for the element text.
The font color can be adjusted for labels, formulas, and column fields in one of three ways: selecting Font Style And Size from the Format menu, clicking the Font Style And Size button on the toolbar, or right clicking on the element and selecting Edit Attributes from the pop-up menu. Selecting this option will bring up a dialog box (or the multi-attribute editing dialog where options can be set in the Font Style And Size tab). To change the font color, click the button next to the Current Color: field. The Set Font Color dialog will appear allowing you to select font color from swatches. You can also enter HSB, HEX, or RGB values.
The background color can be adjusted for labels, formulas, and column fields in one of three ways: selecting Background Color from the Format menu, clicking the button on the toolbar, or right clicking on the element and selecting Edit Attributes from the pop-up menu. Selecting this option will bring up a dialog box (or the multi-attribute editing dialog where options can be set in the Background Color tab) prompting you to specify whether or not to set the background transparent. If you do not want a transparent background, uncheck the checkbox and click the button. This will bring up a dialog prompting you to specify the background color. You can select font color from swatches, or enter HSB or RGB values. You can also directly enter HEX color value to the Hex # field.
You can specify alternating color for labels, formulas, or column fields that are in the data table section of the report in one of three ways: selecting Dual Colors from the Format menu, clicking the button on the toolbar, or right clicking on the element and selecting Edit Attributes from the pop-up menu. Selecting this option will bring up a dialog box (or the multi-attribute editing dialog where options can be set in the Dual Colors tab), allowing you to specify the number of rows between alternating colors. Instead of specifying alternate row numbers, you can also set dual colors to change on the row break (for summary break or crosstab reports) or as a particular column value changes. Using this feature, you can set the cell attributes to change when you reach a new group in a summary break report.
For alternate rows, you can set the background color, the font color, as well as the font style and size. Set the primary attributes as you would for any other report element.
You can specify the thickness and color of the border to be drawn around any report element in one of three ways: selecting Borders from the Format menu, selecting the button on the toolbar, or right clicking on the element and selecting Edit Attributes from the pop-up menu. Selecting this option will bring up a dialog box (or the multi-attribute editing dialog where options can be set in the Border/Round Corners tab) prompting you to enter the border thickness in pixels and to choose a color. Entering 0
as the border thickness value will remove the border.
To change the border color, click the Color: field. The Set Border Color dialog will appear allowing you to select border color from swatches. You can also enter HSB, HEX, or RGB values.
button next to theTo set the border thickness of the each side of the report element, check the Set Thickness Individually option. Then type the thickness (in pixels) in the text fields near the sides of the rectangle representing a selected element.
To set round corners to an element, the elements need to have either non-transparent background color or a visible border, otherwise you will not see any changes. There are four checkboxes near the corners and each checkbox represents an element corner. To make a corner round, check its checkbox (you can also select several corners at once), then type a radius (in pixels) into the Radius text field.
Note | |
---|---|
If you plan on exporting reports with round corners, please note that round corners are available for DHTML and PDF export formats only. |
Sometimes you may want to show the boundaries or borders of report elements in the Design window, without actually turning on the borders. This is especially important if you have blank place-holder cells or columns where the first record is empty. To turn on the cell boundaries, select Show Cell Outline from the Option menu. This will draw a gray dotted border around each report element in the Design window.
One of the common reporting needs is the ability to create form letters or other blocks of formatted text to a report and merge in data fields and functions. This functionality is available using rich text fields. Rich text fields, unlike labels or string function fields, allow for complex paragraph, font, and color formatting within the cell. They also allow the ability to embed column fields and functions directly in the text flow.
To add a rich text field to a report, select Insert Rich Text Field from the Insert menu, or click the Rich Text Field button on the toolbar. After you select this option, a small box will follow your mouse pointer around the design window. Position the box where you want to insert the field and click. A new window will open, allowing you to enter the rich text field.
The rich text editor works like a small word processor. The first drop-down box allows you to select the font and the font size. The three buttons allows you to specify bold, italic, or underlined text. The next drop-down-box allows you to specify font color. The last one allows you to select function or column field formats.
You can specify a columnar layout for the text by selecting Columns from the Option menu. This will bring up a dialog allowing you to specify the number of columns for the rich text field, as well as the spacing between the columns.
You can add in-line images to the text flow in rich text fields as well. To add an image, select Insert Image from the File menu. This will bring up a dialog prompting you to specify the image file you want to import. After you specify it, a new dialog will open, allowing you to specify the size for the in-line image in pixels. After you set the size, click the button and the image will be added to the rich text field.
You can import any rich text file (.rtf format) into a rich text field. To do this, select Import from the File menu in the editor. This will bring up a dialog prompting you to specify the file you want to import.
Note | |
---|---|
Certain paragraph settings will be lost when you import a rich text file. |
You can add any formula directly into the text flow in a rich text field. It is also possible to add column fields and parameter values. To insert a formula, column field or a parameter value, click on the Insert menu, select a category (column, formula or parameter), and choose an item from the list of all available fields/parameters/formulas. The following syntax will be added into the text: <% formula name/parameter name/column field name %>.
The <%Formula Syntax%> syntax (replace the Formula Syntax by the actual formula syntax). For more information about formula syntax, please see Section 1.8 - Using Formulas & the Formula Builder. This approach is recommended for simple formulas only. If you want to insert a more complex formula, you can create it in the report using the Formula Builder and then add it to the rich text field by selecting it from the → menu. See Section 1.8 - Using Formulas & the Formula Builder chapter to learn how to create formulas in the Formula Builder.
→ list contains all formulas from the report. You can also create a custom formula directly in the rich text. To do so, simply type theTo format formulas and column fields, you must first pre-define a format. To do this, select New from the editor Format menu and select the data type for which you want to create a format. This will bring up the formatting dialog for that data type, allowing you to define the format. After you close the formatting dialog, you will be prompted to specify a name for the formatting. For example, you could define a format called Currency that uses locale-specific currency formatting for numbers.
To apply a pre-defined format of a formula, select the formula and then select the format that you want to apply from the drop-down box on the right side of the rich text editor.
You can apply a hyperlink to any report element except column fields. To apply a hyperlink to an element, select it and then select HyperLink from the Format menu or right click on the element and select HyperLink from the pop-up menu. A dialog box will then pop-up asking you to enter the link, hint, and target. You can enter any URL as the link or another .pak
file. The hint will display text in a hint box on mouse over when the report is viewed.
If you are running EspressReport in stand-alone mode, then hyperlinks to URLs will not work from the Preview window. If you export to DHTML or PDF, links to .pak
files will no longer work.
You can also apply dynamic hyperlinks to report elements, including column fields, by using cell scripting. For more information about cell scripting, please see Section 1.9 - Scripting.
This feature is useful for reports that have few or narrow columns of data that are longer than one page. Rather than have the data take up only a portion of the page width and extend over multiple pages in length, you can 'wrap' the columns so that they will continue to the right of the original columns on the first page of the report.
For example, say you have the following report listing product names, and the number of units ordered:
Product Name | Units Ordered |
---|---|
Adad Chair | 4 |
Addad Dresser | 5 |
Amon Table | 2 |
An Chair | 5 |
Anahita Dresser | 3 |
Anubis Table | 7 |
Apep Table | 10 |
Apsu Dresser | 3 |
Asherat Dresser | 2 |
Atun Table | 4 |
Bast Table | 4 |
Bes Table | 3 |
Cula Chair | 10 |
Enki Chair | 12 |
Enlil Chair | 7 |
... | ... |
... | ... |
Assuming this report is long enough to encompass multiple pages, it is ideal to use column wrapping because it uses fewer pages and fills the blank space in the page width. The report will look like this with column wrapping:
Product Name | Units Ordered | Product Name | Units Ordered |
---|---|---|---|
Adad Chair | 4 | Bast Table | 4 |
Addad Dresser | 5 | Bes Table | 3 |
Amon Table | 2 | Cula Chair | 10 |
An Chair | 5 | Enki Chair | 12 |
Anahita Dresser | 3 | Enlil Chair | 7 |
Anubis Table | 7 | ... | ... |
Apep Table | 10 | ... | ... |
Apsu Dresser | 3 | ||
Asherat Dresser | 2 | ||
Atun Table | 4 |
Column wrapping is available for simple columnar and summary break report types. To implement column wrapping, select Column Wrap from the Format menu. A gray vertical bar will be drawn across the middle of the Design window indicating the column wrapping placement.
Column wrapping begins immediately to the right of the bar, so be sure to allow adequate space. Also, anything to the right of the column wrap bar will be truncated.
You can edit the column wrap properties by first selecting the column wrap bar and then selecting Column Wrap from the Format menu. You can also right click on the column wrap bar and then select Column Wrap from the pop-up menu. A dialog box will then appear allowing you to edit the properties of the column wrapping.
From this dialog, you can specify the X position of the column wrapping, as well as the number of times you want the columns to wrap in the page. The X position is the distance (in inches or centimeters) from the right side of the page where column wrapping is to begin. By default, column wrapping occurs once. Setting Repeat Wrap to -1
will cause the wrapping to occur as many times as can fit within the page width.
Note | |
---|---|
You can not specify column wrapping to occur more times than can fit within the page width. For example, if you specify three times, and the resultant report would be wider than the page, it will only repeat the wrapping twice. |
EspressReport has an ability to generate a table of contents for your report. The table of contents can either show the defined groups in the report, or a list of user-defined bookmarks. The TOC will display in Report Viewer, Page Viewer, DHTML, and PDF exports.
To add a table of contents to a report, select Insert Table of Contents from the Insert menu. Your cursor will turn into a cross. Click to place the table of contents in either the Report Header or Table Header sections. You can not add it to any other section. A dialog will open asking you if you would like to use groups or bookmarks for the table of contents.
If you select to use groups, the table of contents will generate an entry for each group (and sub-group) in the report. In order to use this option, your report must contain grouped data (i.e. summary break, crosstab, master & details reports) with detail records. A crosstab report with one row break or a summary break report with column aggregation may be grouped, but because there are no detail records, you cannot create a table of contents for this presentation. If you select to use bookmarks, a one-level table of contents will be generated for each bookmark that is defined in the report. Bookmarks are defined using cell scripts. For more information about setting bookmarks, please see Section 1.9.2.1 - Formatting Actions.
The next dialog that appears allows you to specify options for the table of contents.
The first option in this dialog allows you to set the font for each level of the table of contents. When you click the
button, a new dialog will open that allows you to specify font options.For each level you can set the font face, style, size, and color. Note that a level corresponds with a level of nested grouping in the report. If you select to create a report with bookmarks, only the top level will be available. Sub-levels can inherit the font from the parent level. After you make changes to the font for a particular level, click the
button to save the changes.The next option allows you to select whether to show numbering for the table of contents and which style to use. You can customize each style by clicking the
button. The following styles are supported:This will use a numbered configuration for the table of contents entries with whole numbers for the outermost group and decimals for each sub-group. If you click the
button for this option, the following dialog will appear:The first drop-down list allows you to select how the number should be formatted. The second option allows you to select the starting number. After you make your choices, click the
button to apply the changes.This option will use an outline format allowing you to select numbers, letters, or Roman numerals for each level of the table of contents. If you click the
button for this option, the following dialog will appear:The list on the left side allows you to select the level for which you would like to apply formatting. The first drop-down allows you to select the number format (this will apply whether you select numbers letters or Roman numerals for the level). The second drop-down allows you to pick the format for that level - either numbers, capital letters, lower-case letters, capital Roman numerals, or lower-case Roman numerals. The last option allows you to select the starting point for the selected style. After you make your choices, click the
button to apply the changes.This option will use bullets for each entry. There are now additional customization options for this format.
The next option allows you to specify indentation for sub-groups. You can turn on/off the indentation and specify the number of spaces to use.
The next option allows you to specify whether to show the page number in the table of contents and whether to draw a spacer to the page number. You can draw a dotted line or a solid line for the spacer.
The last option in the dialog allows you to set the layout for the table of contents, either right to left, or left to right. After you finish setting options for the table of contents, click the
button and it will be added to the report.In the report, the table of contents will appear as a small grey rectangle. By default, the resize to fit content option will be turned on, but the width of the table of contents will be based on whatever size you allot for it in the section. Generally, you want to make this at least as wide as your report.
You can see the complete table of contents when you preview the report. The table of contents is only supported for the DHTML and PDF exports. It will not appear if you export the report to other formats.
There are several ways to move and resize report elements. You can use rulers, mouse, or you can manually enter the element bounds.
You can resize and move elements using the rulers located in upper left corner of the Design window. When you select a report element by clicking on it with your mouse, a shaded area will appear on each ruler, marking the element's horizontal and vertical bounds.
On the ruler at the top of the Design window, clicking and dragging the left-hand marker will move the element horizontally. Clicking and dragging the right-hand marker will stretch the element horizontally.
On the ruler on the left side of the Design window, clicking and dragging the top marker will move the element vertically. Clicking and dragging the bottom marker will stretch the element vertically.
You can resize and move elements using your mouse. To move an element, simply click and drag it. To resize an element, click and drag on any of the sizing handles that appear around the edge of an object when it is selected. You can also right click and drag within the cell to resize it.
You can manually set the bounds for any report element by clicking the icon on the toolbar, or by selecting Bounds from the Format menu (You can also set bounds via the Edit Attributes dialog that you can open from the Format menu or by right-clicking an object and selecting it from the pop-up menu). A dialog box will appear prompting you to enter the new element bounds. The measurements will be in inches or centimeters, depending on which unit is selected with the toggle button in the upper left corner of the designer window where the rulers meet. The X and Y coordinates are for each specific report section. The point that marks an element's X and Y position is in the upper left corner of the element.
From the same dialog, you can also set round corners for the selected element. To learn more about round corners, please see Section 1.5.7.6 - Font, Color, and Border Options.
Often, you may have a column field that contains data of varying length. In this case the data may be truncated, or there may be a great deal of blank space within the cell when the field is short. To alleviate this problem, you can set the element to resize its height dynamically to encompass its contents. To do this, first select the cell you want to resize and then select
→ . The element will dynamically resize to fit its content. Note that only the height of the cell will resize. The width will remain the same.You can also invoke the section option called Resize Cells Proportionally to cause all of the other cells in the section to adjust their height with the resized cell. For more information about section options, please see Section 1.5.3 - Section Options.
You can move or resize a group of elements by selecting the elements first. Multiple elements in a report can be selected by drawing a selection box around them or by selecting them using CTRL+Click. You can draw a selection box by clicking and dragging on empty space in a report section. Once the elements are selected, click and drag on any element in the group to move that group. Click and drag on one of the re-sizing handles to adjust the size of elements in the group.
You can align a group of elements to the left side, right side, top, or bottom of a group. Select a group of elements and then right click on it. The Group Edit dialog box will appear giving you the option to align the group. Select Group Left Alignment, Group Right Alignment, Group Top Alignment, or Group Bottom Alignment and click the button. All of the elements in the group will move to the left, top, or bottom edge of the group. You can also select the Center Across Page option. This will take the selected group of cells and center them in the page.
You can move a single element or group of elements between report sections by dragging them over the section boundaries. Note that elements cannot be dragged into the Table Data section.
You can swap the position of two elements within a report section. This is primarily used to rearrange the position of column fields in the report. To swap two elements, select the elements using CTRL+Click or the selection box and then select Swap Columns from the Format menu. The positions of the two elements will be switched and the surrounding elements will be moved to accommodate the swap.
Text elements like labels, formulas, column headers, and column fields can be rotated 90 degrees clockwise or counter-clockwise. There are two ways to rotate elements. The first way to rotate an element is to right click on it and then move the mouse pointer over the Rotate option. A sub-menu will pop-up containing three options - None, Clockwise and CounterClockwise. The second way to rotate an element is to select it and then choose Rotation option from Format menu.
Note | |
---|---|
Text rotation is available for DHTML, PDF, XSLX, and XLS export formats only. |
In EspressReport, each element in a report has an associated Z index. This Z index number determines how elements behave when placed in the same space (on top of each other). When elements are placed in the same space, the element with the highest Z index will appear on top and all subsequent elements with lower Z indexes will be drawn successively below each other. To set the Z index for a report element, right click on it and select Set Z-Index from the pop-up menu. This will bring up a dialog allowing you to specify a number for the index of that element.
Note | |
---|---|
Certain export formats that require a tabular layout, like HTML and Excel, may not appear correctly if the report has elements that overlap each other. |
In Report Designer, you can lock a cell position by right clicking on the element and selecting Lock Position from the pop-up menu. When this feature is enabled, the report element cannot be moved with mouse, rulers, or any of the group formatting or alignment features. It can only be moved when the lock position option is turned off.
By default, Report Designer operates in Snap to Grid mode. This forces report elements to move only in set increments. The grid layout is represented by small dots drawn in the Design window. By default, the grid step size is 0.1 in or 0.25 cm (depending on which measurement is selected).
To modify snap to grid options, select Snap To Grid from the Option menu. A dialog will open allowing you to set grid properties.
In this dialog, you can change the grid step size or disable the snap to grid feature. If you disable it, the report elements can be moved in free-form around the Design window.
Shift mode is toggled on and off by selecting Shift On/Off from the Option menu. When shift mode is enabled, report elements will move to accommodate changes in other report elements. Hence, if you resize the width of one report element from 1" to 2", the elements next to the current element will shift to the right. If shift mode is not selected, other report elements will not move, even if the resized element ends up overlapping another.
Note | |
---|---|
Shift mode works best if you only resize elements or move them by a small amount. If you move elements a pronounced distance with shift mode enabled, it will displace other report elements by a pronounced distance as well, giving the report an odd appearance. |
Another way to position and move groups of elements is to use guidelines. Guidelines allow you to place arbitrary position lines within the Design window and snap report elements to those lines. Guidelines allow you to precisely line up and position report elements without worrying about performing precise movements.
You can insert both horizontal and vertical guidelines by selecting Insert Guideline from the Insert menu. This option will open a sub-menu, prompting you to select whether you want a vertical or horizontal guideline. After you select your desired option, click in the design panel where you would like the guideline to be drawn. The guideline will appear as a dotted line with a marker in the upper or left ruler. You can move the guideline by clicking and dragging the marker in the ruler.
You can remove any guideline from a report by right clicking on the guideline (or the guideline marker in the ruler) and selecting Delete from the pop-up menu.
Note | |
---|---|
Horizontal guidelines cannot be moved between report sections. If you wish to move your guideline to a new report section, you will need to insert a new guideline. |
There are two ways in which objects can be snapped to guidelines. The first option is to snap all the elements that are near the guideline. To do this, right click on the guideline (or the guideline marker in the ruler) and select Snap Elements in Range. You can then further select to snap the cells left edge, right edge, or center. This will snap all the cells that are up to 0.1 inches away from the guideline.
The other option is to selectively snap elements to guidelines. To do this, first select the elements you want to snap to the guideline using CTRL+Click (you can select only one element, but you must use CTRL+Click to select it), then right click on the guideline (or the guideline marker in the ruler) to which you want to snap it. You can specify to snap the cell's left edge, right edge, or center to the guideline for both horizontal and vertical guidelines. Select the option you want from the pop-up menu and the cell(s) will snap to the guideline.
Once an element is attached to a guideline, moving the guideline will cause the element to move as well. You can also snap an element to multiple guidelines. Snapping an element to two guidelines will cause it to stretch to fit.
When you have an element attached to two guidelines, moving either guideline will cause the element to resize (either stretch or shrink).
To release an element from a guideline, right click on it and select Separate From Guidelines from the pop-up menu. This will release the element from any guidelines to which it is attached. You can also release all of the elements attached to a guideline by right clicking on the guideline (or the guideline marker in the ruler) and selecting Separate All from the pop-up menu.
In addition to the main Design window, EspressReport provides another interface to select and edit the elements in a report - the Report Explorer. The Report Explorer displays all elements in the report as a tree structure on the left side of the Designer. It can be turned on and off by selecting Report Explorer from the Option menu.
Each parent node in the tree represents a section in the report. Inside each section, an icon indicates element type and element ID. If you specified a custom ID for the element, it will display instead. For more information about custom IDs, see Section 1.8.2.1 - Using Column Field Data.
You can also edit report elements from within the Explorer. When you select an element in the tree, the element will also be selected in the Design window and the Design window will scroll in order to display that element on your screen. You can then use toolbars, menus, or pop-up menu to set any of the element properties. The pop-up menu can also be activated by right clicking on any element in the tree.
To this point, you have only seen how to edit and format the properties of individual report elements. However, sometimes you may want to format multiple elements at once. To do this, you can use global formatting, group formatting, and templates.
The global formatting feature allows you to give all the elements in your report a consistent look and feel. To set the global formats, select Global Format from Option menu. This will bring up a second menu with each of the different report element types listed: chart, column, formula, image, label, line, rectangle, column header, and title. Selecting one of these will bring up a tabbed dialog box prompting you to set the formats for those elements. Each tab contains formatting options for an element attribute. The formatting options are as follows:
border color, border thickness, set bounds.
data format, font style and size, font color, background color, border color, border thickness, dual colors, set bounds, alignment, rotation, script.
data format, font color, font style and size, background color, border color, border thickness, set bounds, alignment, rotation, script.
border thickness, border color, set bounds, script.
font color, font style and size, background color, border color, border thickness, set bounds, alignment, rotation, script.
line color, set bounds, script.
background color, border color, border thickness, set bounds, script.
font color, font style and size, background color, border color, border thickness, set bounds, alignment, rotation, script.
font color, font style and size, background color, border color, border thickness, set bounds, alignment.
At the bottom of each tab is a checkbox marked Apply Property. Checking this box will apply the property to the global formats when you click OK. The box automatically becomes checked when you change a property. After you make all the property changes, clicking the button will change the properties of all elements of that type in the entire report. It will also become the default attribute for any additional elements placed in the report.
Note | |
---|---|
You have an option to insert images in the original size (default attribute). This can be done using the checkbox labeled Default Size in the Set Bounds tab of the image global format dialog. |
You can pass global formats from one report to another using the Import/Export feature. You can export global formats by selecting Export from the Global Format sub-menu. This will bring up a dialog box prompting you to specify a filename. The global formats will then be saved as an XML file. You can load a global format XML file by selecting the Import option from the Global Format sub-menu. This will bring up a dialog box prompting you to specify the XML file you want to import. Click the button and the formats stored in the XML file will be applied to the current report.
Global formatting is very important when dealing with crosstab reports. Due to the nature of the report, the number of columns can increase or decrease depending on changes in the data, data source, or filtering criteria. When new columns are generated in a crosstab report, they will inherit the default formatting. In order to control the appearance of new columns in a crosstab report, you will need to set the default formatting using global formats.
Global formatting is also important because it controls the intervals in which new columns appear in the report. New columns will appear in intervals defined by the column width in the global formats. Therefore, if you set the default width to be inch, new columns in the crosstab report will appear at one inch intervals. Because of this, it is recommended that you maintain consistent widths for the data columns in a crosstab report. Setting different widths can result in unexpected behavior when new columns are added to the report.
To apply formatting to a group of elements, first select a group of elements either by drawing a selection box around them or using CTRL+Click. You can also select a row or column of cells by right clicking on a cell and selecting the Select Column or Select Row option from the pop-up menu.
Once you select the group, format the properties as you would for a single element. Formatting will only take effect on elements where it is applicable. For example, if you select four elements, two labels, a formula, and a chart, and then change the font size, it will have no effect on the chart.
The features and elements of any report (.rpt
or .xml
) file can be applied to another report. This is accomplished using the apply template feature. To apply a template to the current report, select Apply Template from the File menu or click the on the toolbar. A dialog box will appear, prompting you to select the file you want to apply. When you apply a template, all of the elements and their respective formatting will be applied to the current report. Only the data source information is not carried over (this includes functions and scripts in the table data section of the report).
There are two additional options available in the dialog.
This option will apply the formulaic columns and cell scripts from the template onto the report. By default, they do not apply. Note that formulas and scripts from the template may not work correctly if the data types of the columns in the new report are different from those in the template.
This option indicates whether or not to apply the blank sections from the template to the report. If you apply blank sections, they will overwrite sections in your report, essentially removing any elements you may have in the section. This option is generally used if you want to completely replicate the template that you are applying with the new report. If you do not apply blank sections, those sections in your report will not be overwritten. Only sections in the template with elements will be applied to your new report. This feature can be used if you have a certain default layout (headers/footers) that you want to pass among a group of reports. You can define a template where only the page headers/footers have defined elements and apply those headers/footers to other reports by selecting not to apply empty sections.
If you would like to have a report that has the same look and feel as another one without replacing the labels, formulas, etc, you can accomplish this by using the global format import/export feature rather than applying an entire template.
When running Report Designer in OS X, most of the controls are the same as for Windows or Unix/Linux, with two exceptions:
Instead of CTRL+Click to select multiple report elements or list box options, use Command+Click.
To invoke pop-up menus and resize report elements, use CTRL+Click instead of right click.
EspressReport also works well with Apple's WebObjects®. For more details about developing and deploying using EspressReport in a WebObjects application, see Section 2.6 - Working with WebObjects.