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

Upgrading to version 10.4

edited January 2007 in End User
I just upgraded from RB 7 to 10.4, with Delphi 7. In the report designer,
I've got a custom page were the user can enter information specific to our
app, like a report description that we display to tell them what the report
is for.

On the app's main form is a page control that contains all the components we
want to display on this tab of the report designer. Under RB7 I used this
command:

tabsheet1.pagecontrol:=ppdesigner1.notebook;

That would add that page onto the designer's PageControl. Now, it appears,
the designer no longer uses a PageControl. What's the best way to implement
this?

Gregg Van Oss
gregg@epicsoftware.net

Comments

  • edited January 2007
    Hi Greg,

    ReportBuilder now uses the TppTabbedNotebook class which manages the
    equivalent of a PageControl with the new TBX toolbars. Take a look at the
    ppTabbedNotebook.pas file for the source to this class.

    You can manually add pages to the notebook using the Notebook.AddPage()
    routine which returns you a TPage object that you can manipulate any way you
    need.

    FMyPage := ppDesigner1.Notebook.AddPage('My Page');

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

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