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

first event on ppreportexplorer preview

edited November 2002 in End User
Hi,

When I use ppReportExplorer in RBuilder 6.03, what's the first event fired
that I can trap.

Or , is it a simple way to fill a treeview like reportexplorer ?

--
enlevezmoi_alphomega@free.fr
http://alphomega.free.fr
http://www.codevinfo.com
ICQ 149635116

Comments

  • edited November 2002
    The first event should be the TppReportExplorer.OnCreate event.

    What is your goal? If you want to create your own report explorer form,
    then you can register a report explorer form replacement. See the Tutorials
    section of the RBuilder installation for an example project which does this.

    If you want to populate a tree view like the report explorer does, then look
    in the ppExpFrm.pas unit in the method TppReportExplorerForm.UpdateTreeView.


    Cheers,

    Jim Bennett
    Digital Metaphors

  • edited November 2002
    my goal is always the same. I want to use ReportExplorer but modify the
    value for criteria.
    Actually, I don't use it and I code:

    procedure TDataModuleBase.ImprimeHistoPiece(Value: string);
    var
    liIndex: Integer;
    lDataModule: TdaDataModule;
    lDataView: TdaDataView;
    begin

    ppReportExplorer1.LoadReport('Historique pi?ce', 3);

    {get the datamodule}
    lDataModule := daGetDataModule(ppReport1);

    if (lDataModule <> nil) then
    begin
    for liIndex := 0 to lDatamodule.DataViewCount - 1 do
    begin
    lDataView := lDataModule.DataViews[liIndex];
    if (lDataView <> nil) and (lDataView is TdaQueryDataView) then
    TdaQueryDataView(lDataView).SQL.Criteria[0].Value := Value;
    end;
    end;
    ppReport1.Print;

    end;

    If I use tppReportExplorer and OnGetAutoSearchValues on ppReport, it doesn't
    work without display your dialog box. So I' m going to create my own
    explorer.
    Remember I have always a problem with datadictionnary on datamodule. Perhaps
    it's also a problem with it. Later, I'll try to modify the soft with a Tform
    and not a datamodule.

    --
    enlevezmoi_alphomega@free.fr
    http://alphomega.free.fr
    http://www.codevinfo.com
    ICQ 149635116
This discussion has been closed.