<< Click to Display Table of Contents >>

 

The Report Gallery allows you to store and reuse reports and their elements.

report-gallery

Do not confuse the Report Gallery with the Report Explorer that has a similar user interface. The Report Gallery stores shared templates. The Report Explorer displays the current report structure.

The Report Gallery displays report layout templates in the Reports category.

To create a new template, right-click an empty area around the design surface and select Add To Gallery in the context menu. The report's Name property value defines the template name.

report-gallery-add-report-template

Do one of the following to apply a template to the current report:

Right-click the template in the Report Gallery and select Apply Layout to Report.

report-gallery-apply-report-layout

Drag and drop the template from the Report Gallery onto the report.

report-gallery-apply-report-template-drag-and-drop

The following dialog warns you that the template overrides the current layout:

report-gallery-apply-report-message

When you apply the report template, all the associated styles and components are added to the current report as well.

The Report Gallery's Bands category contains band templates.

To create a new template, right-click a report band and choose Add To Gallery in the context menu. The band's Name property value defines the template name.

report-gallery-add-band-template

Use the following ways to apply a band template:

Drag and Drop

Drag and drop the template from the Report Gallery onto the band of the same type to replace the band's content.

eurd-report-gallery-apply-band-template-drag-and-drop

To create a new band, move the mouse cursor to the delimiter between bands and drop the template.

eurd-report-gallery-create-new-band-drag-and-drop

You can always create new Detail Report bands and Group Headers/Footers. You can add the Report Header/Footer or Page Header/Footer only if the report does not contain this band.

Gallery Context Menu

Right-click a template in the Report Gallery and choose Apply Layout to Band in the context menu.

eurd-report-gallery-apply-band-template-context-menu

This action's behavior depends on the template's band type and the selected report band.

Template's Band Type

Action Result

Detail Band, Vertical Detail Band, Top Margin, Bottom Margin

Replaces the corresponding band's content independently from the selected band type.

Group Header, Group Footer, Detail Report Band

If the same band is selected in the report, replaces the band's content. Otherwise, adds a new band to the deepest hierarchy level.

Report Header, Report Footer, Page Header, Page Footer, Vertical Header, Vertical Footer

If the same band exists in the report, replaces the band's content. Otherwise, adds a new band.

Note that the template stores settings related to the band and its controls (binding information, appearance options, etc). All these settings are restored when you apply the template.

You can combine report controls from the same band into a template. Hold down SHIFT or CTRL and select controls. Then, right-click the selection and choose Add To Gallery in the context menu.

report-gallery-add-controls

This adds a new template to the Controls section. The template name consists of control names separated by commas.

eurd-report-gallery-multiple-controls-template

To apply a control template, drag and drop it from the Report Gallery onto a band.

report-gallery-apply-controls-template

All the control settings are restored when you apply the template.

Right-click a style in the Report Explorer and select Add To Gallery to create a new template in the Styles category.

report-gallery-add-style-template

Use the following ways to apply a style template:

To add the style to the report's style sheet, right-click the style in the Report Gallery and select Add to Report Style Sheet.

report-gallery-style-add-to-report-style-sheet

You can also use the same action in the Styles node's context menu to add all the styles available in the Report Gallery.

To apply the style to a specific report control, drag and drop this style from the Report Gallery onto this control. This also adds the selected style to the report style sheet if it does not already contain this style.

report-gallery-style-apply-to-control

Right-click a data source in the Report Explorer and select Add To Gallery to create a new template in the Data Source category.

report-gallery-add-component-template

Do one of the following to apply a data source template:

Right-click the template in the Report Gallery and select Add to Report Data Sources in the context menu.

report-gallery-apply-component-template

Drag and drop the template from the Report Gallery onto the report.

To change the template name, select Rename in the template's context menu and type a new name.

report-gallery-controls-template-rename

Right-click a root Gallery node and select Add New Folder in the context menu.

eurd-report-gallery-add-new-folder

Specify the folder name. Move templates to this folder to combine them into a group.

eurd-report-gallery-move-template-to-folder

You can import gallery items from an XML file. Right-click the Import toolbar button, locate a file in the invoked Open dialog and click OK.

report-gallery-load-save-gallery

To save gallery templates to an XML file, click the Export toolbar button and select a target file in the Save dialog.