Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating an Out-of-Process COM
Message
 
To
19/11/2003 15:49:16
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00851628
Message ID:
00852385
Views:
7
Dragan
Exactly what i needed. A million thanks!
Jaime

>>Hi
>>I need to issue a REPORT FORM command from a web service ( a multithreaded dll ). I have been told that the only way to go is to wrap the class with the REPORT command into an Out-Of-Process COM Exe. This sounds really nice, but i don't have a clue as for how to implement.
>>
>>Thanks all in advance for you help
>
>Simple but not short. Create your class as a COM object, i.e.
>
>
define class myprint olepublic as custom
>...
>procedure PrintThis
>_screen.visible=.t.
>_screen... {more code to make VFP invisible but to make it think it is - make it small and off
>  the visible area, i.e. negative coordinates}
>report form ...
>endproc
>enddefine
>Now build this as an executable, say printing.exe. If it runs on the same server, it will self-register when built, else you have to register it (only once, if you don't change the component GUIDs).
>
>In the calling app, all you have to do is
>
oPrint=createobject("printing.myprint")
>oPrint.PrintThis()
>
>Of course, you may want to pass it some parameters, hide the _screen when done etc.
Why do programs stop working correctly as soon as you leave the Fox?
Previous
Reply
Map
View

Click here to load this message in the networking platform