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

Outline-Problem

edited March 2003 in General
Hi,

I would like to use in my own preview the outline nodes results, but not the
outline component itself. (OutlineSettings.Visible := False) As far as I
could figure out is that the content in the TppOutlineNode - I'm only
interested in the entries "PageReference" - are stored in a TList component
FNodesReceivingPageNodes in Unit ppOutlineNodeCreator.pas any time. My
question is so far. Do I have a chance to get a (node) list or something
like that, where the PageReference are stored? To make a long story short I
intend to install a combobox in my preview form. The list shows for example
"Subreport 1, Subreport 2, Subreport 3 etccpp.". What I don't know is the
corresponding PageReference to this entries. If I could loop through the
FNodesReceivingPageNodes list directly the problem is solved.

Any ideas?

Cheers

Martin Cremer

Comments

  • edited March 2003
    There is a published Report.OnOutlineNodeCreate event you should use. This
    has a TppOutlineNode object passed in the event. This object has the
    PageReference property. Check the NodeType property to see what kind of
    node it is. See the help file for more information on this class. I think
    you can build a list of these in a TList and use them to jump to a page from
    the combo box event handler in your custom preview.

    Additional info: The outline library is embedded throughout ReportBuilder.
    The outline generation is internal. You can customize the outline viewer if
    you would like to, but not hte outline internal library at runtime. Here is
    an example which shows you how to get at the outline viewer we create and
    customize its appearance. You can create a combo box with the subreport
    listed in the report, by using a report object loop to find TppSubreport
    components.

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


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited March 2003
    Hi Jim,

    many thanks for your help. My problem should be solved pretty soon.

    Cheers

    Martin Cremer


This discussion has been closed.