General information
Category:
COM/DCOM and OLE Automation
Diane,
Have you tried:
loFaxServer.Connect('YOURSERVERNAME') substituting the correct name? Works here (VFP8)...
>Hi,
>
>I've been testing this piece of code. It goes well under a XP pro machine but gives an "unknown" error on the connect line when using a Windows 2000 server (opening VFP 6.0 directly on the server and typing each line in VFP command windows).
>
>Just asking, does anybody has this work on a windows 200 server?
>
>
>SET OLEOBJECT ON
>
>loFaxServer = CreateObject("FaxServer.FaxServer")
>loFaxServer.Connect('') && It will use local Fax Server
>loFaxDoc = loFaxServer.CreateDocument("C:\fax\fax.txt")
>loFaxDoc.FaxNumber = "+1 (514) 1234455"
>loFaxDoc.RecipientName = "Some Name"
>loFaxDoc.Send()
>
>loFaxDoc = .NULL.
>loFaxServer.Disconnect()
>loFaxServer = .NULL.
>
>
>TIA
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only