Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Report Template

edited July 2003 in General
Delphi 5
Report Builder 7.02

All,

I have a requirement to create a new report from an existing Company
template (margins and logo set etc.). This isn't obvious to me how to
achieve.

Can someone please shed some light on this.

Apologies if this is obvious to everyone else ;-)

TIA,

Paul.

Comments

  • edited July 2003
    Hi Paul,

    I am a bit unclear on your question.

    What type of template to you already have? Is this template a ReportBuilder
    Report Template (.rtm)? If it is, you can simply load the template into an
    empty report using the Report Designer and selecting the File | Open menu
    option. If you need to copy a visual template of some sort in another
    format, you can adjust the margins of a new report by selecting the File |
    Page Setup menu option. It is also possible to place an image version of
    the logo you need in a report using the Image component or DBImage
    component.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2003
    Nico,

    Thanks for your rapid response.

    All reports that are created using my tool must have a company logo in the
    upper left corner of the report and they must have the margins setup to
    sizes that differ from the normal "New Template"

    At the moment every time a user wants to create a report they have to set
    this up every time. What I proposed was that rather than starting from a
    blank canvas, they could start from this company template.

    I have already provided two RTM files that have a logo and margins set up (1
    landscape, 1 portrait). I thought that it might have been possible therefore
    to use these templates as the "New" starting point rather than a completely
    blank report (by using "File - New Company Landscape Report" or something
    similar).

    Hope this is clearer. Regards,

    Paul.


  • edited July 2003
    Hi Paul,

    You could load the templates you already have made into a report every time
    before one of your users opens the ReportDesigner. This can be done very
    easily by using the following code:

    Report.Template.FileName := 'myTemplate.rtm';
    Report.Template.LoadFromFile;

    Designer.ShowModal;

    Then your users would have the template you created as a starting point
    every time they wanted a new report.

    - It is also possible to create your own Report Wizard that could guide your
    users through creating a report to your specifications. An example of doing
    this is in the example below.

    http://www.digital-metaphors.com/tips/ReplaceReportWizard.zip

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.