Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Faxserver document handle
Message
De
26/04/2008 02:51:02
 
 
À
25/04/2008 19:03:48
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01312742
Message ID:
01313260
Vues:
20
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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform