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?