Elliott
Tue Jan 23 13:33:35 CST 2007
Dan, I obviously don't know how to implement the code in VFP. You will find
some code I tried below. Following that, you will find a clip of the
reference material I used for getting the "devicestatus".
--------------------------------
*My code:
c=createobject('faxserver.faxserver')
*some other code goes here...
*after sending fax,
fj=x.getjobs()
fp=x.getports()
?fp.item(1).deviceStatus
*I also tried
?fj.deviceStatus
*Both tries indicated errors about devicestatus.
--------------------------------
Reference material:
Here is the explanation from the documentation which you said looked very
straight forward:
IFaxJob::DeviceStatus Property
The IFaxJob::DeviceStatus property is a null-terminated string that
describes the status of the port associated with the fax job.
Syntax
HRESULT IFaxJob::get_DeviceStatus(BSTR *pVal);
Parameters
pVal
Pointer to a variable of type BSTR that receives a localized null-terminated
string that contains a fax device status. Following are the English string
equivalents.
etc. etc.
----------------------------------
"Dan Freeman" <spam@microsoft.com> wrote in message
news:uRQo15wPHHA.3668@TK2MSFTNGP02.phx.gbl...
> The explanation seems straight-forward to me. What have you tried? What
> didn't work?
>
> Dan
>
> "Elliott Myron" <myron123(at)adelphia(dot)net> wrote in message
> news:x4udndv8qIErzyjYnZ2dnUVZ_silnZ2d@adelphia.com...
>> The link below brings up a site for MSDN and has information for
>> "Managing Fax Jobs".
>>
>>
http://msdn2.microsoft.com/en-gb/library/ms691821.aspx
>>
>> This has a section called "Querying Fax Jobs", which should have all
>> the information needed to get the status of a fax job. I am using the
>> sample code for sending a Fax which was found in the link below:
>>
>>
http://fox.wikis.com/wc.dll?Wiki~TapiFaxAutomation~VFP
>>
>> There is no problem sending the Fax, but I can't seem to get the status,
>> which should be available, as indicated in the MSDN site above. Perhaps
>> someone who is more familiar with C++ or VisualBasic can figure out how
>> to integrate the code in a VFP implementation. The goal is to get the
>> status of the fax being sent. I would appreciate any help I could get
>> toward achieving the goal.
>>
>> Thanks,
>>
>> E. Myron
>>
>
>