|[Top] [Chapter] [Previous] [Next]|
This interface can be accessed through the property Report. It allows the preparation of a reporting template definition with obligatory and optional groups, bands and fields.
Manage report template and reporting.
Please note the new token to template conversion. It allows it to convert simple text into a reporting template and is suitable to solve most of the reporting problems. Here we discuss the more advanced techniques. Please first read the chapter "Reporting".
In this case you will only need this methods:
Please also see the description of this events:
The DB-Description is internally managed as a XML structure, it can be loaded from XML and saved to XML. When the XML structure is used to create a reporting template, a copy of the XML data is attached to the template.
By simply calling the method InitTemplate the template is prepared in the upper editor. The user can then add optional fields, adjust text attributes or type in some text.
InitTemplate function parameters:
If bit 2 is set, the engine will load the XML from the report template and overwrite the information stored in the report object.
If bit 3 is set, the DB-Description form (also called repository) will be displayed. Once this form was displayed the methods ShowTemplate and ShowResult will automatically show and hide this form.
Load a DB-Description and create a raw report template
Report.InitTemplate("@A new report",1+4);
Load a previously created template (RTF or WPT format) & show the repository form
Only set caption for DB-Description form (must be already displayed)
Report.InitTemplate("@a new caption",0);
This special dialog can be displayed in stay-on-top-mode to insert fields and to update the template using a changed selection of the optional bands. This dialog internally updates the XML structure, so the selection of bands and fields can also be saved back to XML.