Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows 2003 Server FAX control from VFP?
Message
 
À
16/02/2005 13:56:04
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
00987580
Message ID:
00987824
Vues:
28
Hi Andrew
I guess you mean Windows SBS2003 ( which includes the exchange/fax server etc... ). It's quite a pain...You should proceed as follows:
1) install "Microsoft Fax Transport" in the Exchange Services profile in every workstation
then, to send your reports by fax:
2) create a tif of your report - let's call it report.tif ( see note later )
3) send the tif using outlook in something similar to
oa = CreateObject("Outlook.Application")
oEmailItem = oa.CreateItem(0)
with oEmailItem
   .Recipients.Add("[FAX:"+YourFaxNumberString+"]")
   .Subject = "This is the subject of the fax"
   .Importance = 1   && or 2 for hight priority
   .Body = "Enter some text here if you want"
   .Attachments.Add(FullPath( "report.tif" ) )
   .Send && and pray that it goes
endwith
release oEmailItem, oa
Note: about the tif creation, i had problems creating the tif under Win98 workstations, and i didn't check lately to see if it works or not, so i create the tif as follow:
if OsVersionIs98
   set printer to name "SharedFax" && name of fax printer installed
   report form blabla to file "report.tif" noconsole
else && winxp use listener
   ox = CreateObject("ReportListener")
   ox.ListenerType = 3 && TIF output
   report form blabla object ox
   ox.OutputPage( 1, "report.tif", 101 )
endif
HTH
Jaime
endif


>Has anyone any experience with or thoughts on being able to send faxes through Windows 2003 Server's FAX service, controlled from a VFP application, or failing that, a strategy for populating a FAX # list from outside the service, again from a VFP DB?
>
>Thanks!
Why do programs stop working correctly as soon as you leave the Fox?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform