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

Data-tree visible when opening designer.

edited August 2003 in General
Hello,

Is it possible when you open the designer at runtime, to display defaut the
data-view and on the layout-tab select only the Fields to add. How can i do
this?
Is is also possible to set the default font for the added items?

Thanks in advance,
Wim Looman
Hills automatisering b.v.

Comments

  • edited August 2003
    Hi Wim,

    Try using the TppDesigner.ToolBarManager.FindToolBar method to get access to
    the TppDataTree class. You will do something like the following snip of
    code below:

    uses
    ppDsgner, ppToolWn, ppIDE;

    {Some event or method}
    var
    lDataTree: TppDataTreeWindow;
    lToolBarManager: TppToolBarManager;
    begin

    lToolBarManager := TppDesignerWindow(Designer.Form).ToolBarManager;

    lDataTree := TppDataTreeWindow(lToolBarManager.FindToolBar('DataTree'));

    lDataTree.Visible := True;

    --
    Best Regards,

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

    Thanks for your answer,

    When i try to assign TppDesignerWindow(Designer.Form).ToolBarManager to
    lToolBarManager i get an error undeclared identifier (ToolBarManager). Is
    this because i use rb version 6.02 enterprise and do i need to upgrade to
    rb7, or is it someting else that i'm missing?
    When i look in the class of TppDesignerWindow, i can't find anything from
    the ToolBarManager so i think it will be in the next version?

    Thanks again in advance.

  • edited August 2003
    Hi Wim,

    Be sure you added ppIDE to your uses clause. If you are still experiencing
    the problem, try downloading the trial version of ReportBuilder 7.02
    Enterprise and testing with that. Be sure to back up all your templates
    before opening them in 7.02.

    --
    Best Regards,

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