Information générale
Titre:
Question regarding MS Fax Service under WinXP / VFP6
Has anyone had any experience sending a fax through VFP 6 using the included Fax Service under Windows XP? I am working on a project that requires the ability to fax reports using only the Fax Service included by Windows, so I can't look at other controls... :(
I searched the message archive for code samples both here and on MSDN. All the samples I've seen basically look the same. Included below is the simple code sample I am attempting to run.
<------------------------------- snip ------------------------------->
loFaxServer=createobject('faxserver.faxserver')
loFaxServer.connect( '\\'+alltrim(LEFT(SYS(0),at('#',SYS(0))-1) ) )
lcTmpDoc = "C:\Temp.txt"
* Create a fax document
loFaxDocument = loFaxServer.createdocument(lcTmpDoc)
loFaxDocument.faxnumber = "555-1122"
loFaxDocument.displayname = "Test Fax"
loFaxDocument.filename = lcTmpDoc
loFaxDocument.sendcoverpage = .F.
* Send it Off!
loFaxDocument.Send
loFaxServer.Disconnect
RELEASE loFaxDocument, loFaxServer
<------------------------------- snip ------------------------------->
When the code reaches the loFaxDoxument.Send line I get an Ole error message that says "handle invalid".
Any help would be appreciated!
TIA
-- Chris
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