|
The Diff can use for
reporting either internal (built into the executable) or optional
external (loaded from files in Reports/ subdirectory) report
templates. Both schema- and data- report templates are tightly
integrated with the hardcoded part of template generation. This
means that the current architecture only allows to make small
changes in the report styles, like customizing cell sizes, colors,
borders or fonts.
Each of the two (schema-
and data-) pre-report dialogs has a template selection combobox,
which always contains a "(built-in report)" choice and is
additionally filled with suitable filenames from the Reports/
subdirectory. The schema reports dialog only scans report template
files ending in ".sch.fr3",
whereas the DataDiff report dialog uses templates ending in
".dd.fr3".
Since template files for schema- and data- reports have different
structures, this naming convention helps to avoid confusion.
On each pre-report
dialog, there is an [Edit] button to the right of the template
selection combobox. The button invokes FastReport's designer with
the currently selected report template. When you edit the template,
you must not delete nor rename controls nor move them from the band
where they are defined. Sizes, colors, fonts, relative positions or
visibility of report components can all be changed,
carefully.
The reports don't use the
color settings for various matched/mismatched elements as defined
in the Schema Options dialog. Instead, each report template
contains a number of invisible (at runtime, but visible in the
designer) controls whose font and color attributes will be used in
various situations. All these configurable controls are clearly
explained right in the template, so your changes to the templates
should be mostly to those controls.
Once you are done
modifying the report template, save it to a file with a proper
extension, as described above: ".sch.fr3
for schema
reports or .dd.fr3
for DataDiff
ones. This version of Diff doesn't verify that you use the correct
extensions, so you have to be careful. If you have named the new
report correctly, it will then appear in the report selection
combobox.
|