Home Subreports

Setting a Region in the main report visible from a subreport

edited May 2003 in Subreports
I'm trying to set a region in the main report visible from a subreport.
Does anyone know/have syntax of how to do this?

Thanks very much
Jaline Richards

Comments

  • edited May 2003
    Forgot to add that I'm trying to do it at run time through the designer.
    (version 6.03)

  • edited May 2003
    In RAP, you won't be able to directly. The scope of the RAP code only lets
    you see and change the objects in a subreport. However, you can work aroufn
    this by using a global varibale in RAP. You can create a global variable of
    type TppRegion in RAP's global variables section. Then in the global
    OnCreate event, assign the global variable to hold a reference to the region
    component. Then you can reference the global variable in the subreport in
    order to access the region in the main report.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.