Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Method call from report
Message
From
19/06/2002 21:07:38
 
 
To
18/06/2002 16:50:11
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00669903
Message ID:
00670421
Views:
31
This message has been marked as the solution to the initial question of the thread.
>I have a report which is part of a suite of reports. The suite contains common selection dialogues and is compiled as a COM object so that other components can generate and deliver reports as required. Methods in the COM object execute the SQL commands and result in a cursor that is delivered to the report. My problem is that within the report I need to call a method in the COM object to perform actions when each record in the cursor is processed. Since the report is not an object that is "contained" in the COM object This.Parent.MyMethod won't work. I can call an external program from the report, but then I cannot use methods and properties of the COM object. Can anyone give me an idea how to do this?
>
>Thanks.
>
>Rick Grinter

Create a private variable and save a refference to THIS (or THIS.PARENT in it)
e.g.
PRIVATE poThisParent
poThisParent = This.Parent
* Report Form ...
In the report instead of This.Parent use the variable (poThisParent in the example)

HTH
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform