Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question regarding MS Fax Service under WinXP / VFP6
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Question regarding MS Fax Service under WinXP / VFP6
Miscellaneous
Thread ID:
00629605
Message ID:
00629605
Views:
39
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
Next
Reply
Map
View

Click here to load this message in the networking platform