Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XP Pro FaxServer not working
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
XP Pro FaxServer not working
Divers
Thread ID:
00892046
Message ID:
00892046
Vues:
77
The following code executes on two Windows 2000 machines, but fails on a Windows XP Pro machine:

****************************************************
xxx=createobject('faxserver.faxserver')
lcNetInfo = SYS(0)
lcMachine ='\\'+alltrim( Left( lcNetInfo, AT('#', lcNetInfo )-1 ) )
xxx.connect( lcMachine )

* Create a fax document
FD = xxx.createdocument("filename") && <- FAILS HERE
fd.faxnumber = '3816405'
fd.displayname = 'VFP Fax Message'
fd.filename = fullpath("C:\junk.txt")
fd.sendcoverpage = .f.

* Send it Off!
fd.Send
*****************************************************

The error message is:

OLE error code 0x80070006: The handle is invalid

I can send a FAX from the Windows XP Pro machine by selecting the FAX option after opening the C:\junk.txt document in NotePad and selecting Print from the File menu. I have confirmed that the "Fax Services" Component has been loaded on the XP Pro machine. I am logged on to the machine as an Administrator. Are there some other DLLs that I have to register? Is there some security default setting that is different in Windows XP Pro that I have to turn off?

Beats the stuffing out of me. Any suggestions would be most appreciated.

Thanks
J. Serdakowski

Once you know it, it's easy.
Répondre
Fil
Voir

Click here to load this message in the networking platform