Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
Event Notification from WinFax Pro in VFP App
I have designed a VFP6 app (under NT4) that allows my end users to automatically fax reports to clients. It uses Symantec's WinFax Pro V8.03 as its fax engine. In production for about a year and a half, this app was originally a VFP3 design under Win 3.1 and used DDE to pass fax requests to the WFP fax engine. The WinFax SDK included with V8.0 introduced communication via OLE automation so that a fax send could be intiated via code similar to
SendObj=CreateObject("WinFax.SDKSend")
<< set up fax recipient name, phone number, cover page, etc.>>
SendObj.Send(1)
An inherent problem in my design has always been EVENT NOTIFICATION... and hence the PACING of "Send Fax" request. When I issue a Send request, I have NO way of knowing the status of the fax programatically..... UNTIL NOW. Microsoft has recently issued a utility called VFPCOM that gives Visual FoxPro the same capability that the Visual Basic's DIM...WITH EVENTS feature provides. According to a post elsewhere, this .DLL "....allows you to bind VFP code to COM events..."
My REAL problem is that the concepts of COM, ActiveX Automation Servers and the Event Notification capability (outlined in the WFP SDK) are over my head. All I want to do is this:
1. send a fax request to WFP.
2. wait for notification that the fax completed.
3. loop until all faxes have been sent.
Can anyone help me with understanding VFPCOM.DLL and WFP's Event Notification... and at least get started on the right track?? Thanks!
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement