Information générale
Catégorie:
Codage, syntaxe et commandes
Josh,
I suspect that you are correct. Thanks for the timer idea...I would have never thought of it.
I'm going to try another idea this morning. The control also has some properties that I can query to determine when the fax is complete. I won't be able to display the real-time progress of the fax...but since this is a "background" server application that feature isn't critical.
Thanks again,
Tim
>Tim,
>
>You might need to be at read events to get the event to fire. You could use a timer to run some code repeatedly while the fax is being sent without staying in a loop.
>
>>Hi,
>>
>>I'm trying to use the FaxMan ActiveX control for faxing in VFP 5.0. It works fine...with one slight problem.
>>
>>As a fax is being sent, the control has a FaxStatus() event that fires periodically. By adding code to the event, one can update a progress bar and (more importantly) determine when the fax has completed.
>>
>>I created a simple test form with this control. After adding about a dozen lines of code, I was able to send a fax and watch the FaxStatus() event fire every few seconds.
>>
>>In my real-life application, I want to stay in a programmatic loop until the fax is complete. However, now the FaxStatus() event won't fire. I tried setting AutoYield to both T/F. I tried adding a DoEvents inside of my loop. I'm stuck. Will the ActiveX control's events only fire when sitting at a READ EVENTS?
>>
>>TIA,
>>Tim
Précédent
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