Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Method call from report
Message
From
30/06/2002 08:18:36
 
 
To
19/06/2002 21:07:38
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00669903
Message ID:
00673697
Views:
15
>>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:

Thanks for that. It works perfectly.

Rick Grinter
Previous
Reply
Map
View

Click here to load this message in the networking platform