Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Winfax pro and VFP
Message
De
13/11/2001 14:45:44
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Winfax pro and VFP
Divers
Thread ID:
00581078
Message ID:
00581078
Vues:
57
I am using WinFax10 and Visual FoxPro 6.

I am trying to use Winfax pro in my application to automatically send faxes.

My routine works the first 3 - 4 times it's called. After that, the next time the routine runs, the Winfax coverpage dialog appears asking for a coverpage.

In my code I turn off the coverpage setting and that works for the first few times, after that the coverpage dialog displays.

Below is the code I use. I call this code everytime in my routine.
ofax = NEWOBJECT("winfax.sdksend")
SET PRINTER TO NAME WinFax
ofax.ResetGeneralSettings()
ofax.SetTo("myname")
ofax.SetCompany("mycompany")
ofax.SetCountryCode("")
ofax.SetAreaCode("")
ofax.SetNumber("555-5555")
ofax.SetSubject("Test Fax")
ofax.SetDeleteAfterSend(1)
ofax.SetResolution(1)
ofax.SetPrintFromApp(1)
***Include a cover page. 1 = yes, 0 = no.
ofax.SetuseCover(0)
ofax.ShowSendScreen(0)
ofax.ShowCallProgress(1)
ofax.EnableBillingCodeKeywords(1)
ofax.SetKeywords("someemail@hotmail.com")
ofax.AddRecipient
ofax.Send(0)
***Print report here.
ofax.Done()
ofax.LeaveRunning()
RELEASE ofax
Any suggestions for turning off the coverpage setting? Plus occasionally other weird things happen with Winfax. Any suggestions on making this routine run smoother?

Thanks,

Jerryt
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform