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

expanding drill down reports programatically, via an end user report viewer?

edited October 2001 in General
hi everyone,

at the point of loading a report into the end-user report viewer, is there a
way to collapse/expand individual drill down components; as opposed to the
expanddrilldowns/collapsedrilldowns; which does all...

i want to offer the user the option of drilling down at the application user
interface level.

tia,

terry robinson.

Comments

  • edited October 2001
    Sorry, for the delay, you'll need to pull out the expansion key for the
    currently printing subreport and add it to the expansions list which the
    subreport has. At report generation time, the expansion key for a subreport
    can be extracted. You can do this in the OnPrint event of the subreport
    component. You'll want to call this method based on whichh subreport you
    want to expand on the page.

    if (FCount = 3) then
    Subreport.AddExpansion(Subreport.GetExpansionKey);

    This will cause the third subreport to expand, while the others aren't
    expanded. The report engine will take care of the rest for you, because it
    uses the expansion list of the subreport to generate.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.