General information
Category:
COM/DCOM and OLE Automation
Environment versions
Network:
Windows 2003 Server
Thank you. This is what I have tried and testing it I get this error:
1429 - OLE IDispatch exception code 0 from FaxComEx.FaxDocument.1: Operation failed...Operation failed.FaxComEx.FaxDocument.1
The fax printer is shared and operates normally if I open a document and print to the shared fax print driver. From VFP I tested with a PDF and it opened the viewer but errored before sending the fax. I tried in both Vista and XP Pro.
Any ideas?
Thanks again.
>First, you must prepare valid TIFF or multipage TIFF. Otherwise, you can also send any DOC or PDF document, but application (Word or Acrobat) will open while sending to fax server. Second, if you are remote, the fax printer must be shared and added on your workstation. Third, execute the following lines of code.
>
>oServ=CreateObject("faxcomex.faxserver")
>oServ.Connect("YourFaxServerName")
>oDoc=CreateObject("faxcomex.faxdocument")
>oDoc.Subject = "test"
>oDoc.Recipients.Add("9991234567")
>oDoc.Body = "FileNameWithPath"
>oDoc.ConnectedSubmit(oServ)
>oDoc=null
>oServ=null
>RELEASE oServ, oDoc
>
>P.S.: Server is Win2003 and Client is WinXP.
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