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

Another future feature wish

edited February 2003 in General
The ability to show/hide report bands at runtime with a tree similar to
the OutLine.
In that way the users could hide the detail bands, group footers, etc
and print just the data they want each time. Again, i know it's a very
complex task because you need to recalculate all the report pages
(dimensions at least). But, it could be great.
--
Guillermo Castaño Acevedo
Gerente de Sistemas - Grupo Millennium Ltda
GuillermoC@GrupoMillennium.com
http://www.GrupoMillennium.com

Comments

  • edited February 2003
    Thankyou for the suggestion.

    Technically it should be possible. You could code it yourself if you need it
    implemented today. In the current implementation, the Outline appears
    separately from the page viewer area of the preview form. The report engine
    can support regeneration from the preview tab, as DrillDown subreports force
    pages to be regenerated. You could add a treeview component in a custom
    preview plugin. You can get at the report from the Viewer property inside of
    your preview plugin descendent class. Do a typecast as
    TppReport(Viewer.Report) and then loop through the bands and components and
    recursively loop through the subreport's as well. This way you could build a
    tree like structure that showed the bands and subreports only. If you see
    our ReportTree, it displays the report components in a tree. See
    ppTreeVw.pas for the TppReportTreeView class. Also check out the
    TppCheckTreeView class in ppCheckTreeView.pas as an alternative. Visually,
    you have to create the treeview in code in your custom preview (TppPreview)
    descendent. You could show it in the panel below the outline or above it,
    because the AccessoryToolbar (a TPanel) in the TppPreview parents the
    Textsearch panel and the OutlineViewer.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited February 2003
    Hey, that sounds good... i'll give it a try when i have some time ;)
    I don't really need it right now, but my customers will love such
    feature because sometimes they just want to print/export some parts of
    the report. So including this in a future report release will be great.
    Thanks a lot

    --
    Guillermo Castaño Acevedo
    Gerente de Sistemas - Grupo Millennium Ltda
    GuillermoC@GrupoMillennium.com
    http://www.GrupoMillennium.com
This discussion has been closed.