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

Dymanically Created Bands?

edited April 2003 in End User
Hi There,

Sorry if this is the wrong newsgroup but I'm new here!

I've not touched RBuilder for ages and so I'm going around in circles. Can
someone tell me how I might be able to dynamically add a Title band to the
report designer and place a bitmap in it? The idea is that when the user
creates a new report from the ppReportExplorer they'll find the Title band
in the report designer already populated with the company name and logo.

I'm using D5 and RB6.02

Thanks,

Robby

Comments

  • edited April 2003
    1. You can load a template very easily to do this by using the public
    template event OnNew:

    procedure TmyEndUserSolution.FormCreate(Sender: TObject);
    begin
    ppReport1.Template.OnNew := NewReportEvent;
    end;

    procedure TmyEndUserSolution.NewReportEvent(Sender: TObject);
    begin
    ppReport1.Template.FileName := ExtractFilePath(ParamStr(0)) +
    'BaseReport.rtm';
    ppReport1.Template.LoadFromFile;
    end;



    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited April 2003
    Thanks Mate!!


This discussion has been closed.