Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
Winfax 10 & Windows 2000
VFP 6.0 SP5.
I am trying to programmatically send faxes using winfax 10 and windows 2000 without getting the winfax send dialog box. I am using the following code in windows 98 and it works perfect. Using windows 2000, it works sometimes, but other times it brings up the winfax send dialog box.
This is the code that I'm using.
oFax=CreateObject("WinFax.SDKSend")
oFax.LeaveRunning
ofax.setTo("")
oFax.SetCompany(Ccompanyname)
oFax.SetSubject(Csubject)
oFax.SetNumber(Cfaxnum)
oFax.AddAttachmentFile("")
oFax.SetPrintFromApp(1)
oFax.AddRecipient
oFax.Send(0)
set printer to name winfax
report form autofax.frx to printer noconsole noeject
RELEASE oFax
TIA,
Rob
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement