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

TChart + ObjectByName

edited January 2002 in General
The Report.ObjectByName function does not appear to find TChart controls
although all other controls are found. Is there any way I can use
ObjectByName or any other method to locate a TChart compoent(s).

Thanks in advance

Comments

  • edited January 2002
    It is working for me. If you have a subreport, you'll have to call
    ObjectByName on every subreport as well.

    lbFound := ppReport1.Objectbyname(liBand, liCompIndex, Edit1.Text);

    if not(lbFound) then
    lbFound := ppSubreport1.Report.Objectbyname(liBand, liCompIndex,
    Edit1.Text);


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.