Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Roaming Record Pointer
Message
From
23/12/1999 09:58:31
 
 
To
23/12/1999 09:29:30
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00306394
Message ID:
00307899
Views:
34
Our latest solution for reports was inspired by Lisa Slater Nicholls. We use the beforeopentables method of the report to create a report variable to the calling form.

* BEGIN DATAENVIRONMENT.BEFOREOPENTABLES()
dodefault()

public roCaller

roCaller = _screen.activeform

* END DATAENVIRONMENT.BEFOREOPENTABLES()

Once this is done, our report can access Methods and Properties on the calling form. ie: roCaller.Method or roCaller.Property

This gives us a report that is encapsulated in a single SCX and an FRX.

We then use the on entry event of the Detail band to run methods on the calling form that in turn populates properties on the calling form. And finally the detail line reports the values of those properties.
Previous
Reply
Map
View

Click here to load this message in the networking platform