Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Faxserver document handle
Message
From
26/04/2008 02:51:02
 
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01312742
Message ID:
01313260
Views:
18
I'm glad you get it working, but I'm sorry that I couldn't give you more help.

>At near exhaustion, I finally got SOMETHING to work.
>In fact it works like a dream, it's simple and fast.
>It bugs me that the Faxserver class always gave me file handle errors!
>What would be the big difference here between Faxserver and Faxcomex?
>
>I went to using FAXCOMEX as follows:
> tmpFaxFile = FULLPATH(CURDIR()) + sys(2015)+".TIF"
> oFax = CreateObject("FAXCOMEX.FaxServer")
> oFax.connect(eFaxSoftW)
>
> SET PRINTER TO NAME eFaxSoftW +"\Fax"
> Report Form myreport TO FILE (tmpFaxFile) Noconsole
>
> oFaxDoc = CreateObject("FAXCOMEX.FaxDocument")
> oFaxDoc.Body = (tmpFaxFile)
>
> oFaxDoc.DocumentName = "Our company"
> oFaxDoc.Recipients.Add ("818014895274")
> oFaxDoc.Sender.Name = gluser
> oFaxDoc.Sender.Email = ""
> oFaxDoc.Sender.FaxNumber = ""
> oFaxDoc.ConnectedSubmit(oFax) && Fax it out
>
> oFax.Disconnect()
> release oFax, oFaxDoc
> delete file (tmpFaxFile)
Previous
Reply
Map
View

Click here to load this message in the networking platform