Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Winfax pro and VFP
Message
From
13/11/2001 14:45:44
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Winfax pro and VFP
Miscellaneous
Thread ID:
00581078
Message ID:
00581078
Views:
56
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
Next
Reply
Map
View

Click here to load this message in the networking platform