Solved

Faxing a Report from Within Visual FoxPro

Posted on 2013-06-10
5
229 Views
Last Modified: 2016-04-14
Trying to fax a Visual FoxPro generated report

Hi, I'm writing a module to fax a report.  I'm not sure how to get my dedicated fax SBS to be recognized by FoxPro.  Any suggestions would be greatly appreciated.
0
Comment
Question by:Michael_Summers
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 42

Expert Comment

by:pcelba
ID: 39234953
If the fax works as Windows printer then you may set this printer before REPORT FORM command:

SET PRINTER TO NAME "YourDedicatedFax"
REPORT FORM myReport TO PRINTER

You could also set the Fax as default printer in VFP - see http://news2news.com/vfp/?group=57&function=940

Some fax servers can receive an e-mail which they will send to given fax number.

Another way is described here: http://www.tek-tips.com/viewthread.cfm?qid=1558102

Everything depends on your fax capabilities...
0
 
LVL 12

Accepted Solution

by:
jrbbldr earned 500 total points
ID: 39234971
I can only speak for older situations which may or may not be applicable to your situation.
But since you mention SBS it might be.

One of my clients used to have SBS as their primary network OS.
Within SBS is a FAX Service which can be added as a 'printer' service to the individual workstations.
Then, once that is done, Outlook can be configured to recognize that FAX Service.

Due to Outlook's Security 'gotcha' they were using Redemption to 'drive' Outlook and get around this 'gotcha'.

So once all that was in place, it was pretty easy to send the FAX...
oRedem = CREATEOBJECT("Redemption.SafeMailItem")
oOutlook = CREATEOBJECT("Outlook.Application")
oMail = oOutlook.CreateItem(0)

WITH oRedem
   .ITEM = oMail
   .TO = "[fax: " + cFaxNo + "]"
   .Subject = cSubject
   .Importance = nImportance
   .Body = ""  && No Body
   .Attachments.ADD(cAttachment) && Fully Pathed Attachment File to be FAX 'body'
   .SEND
ENDWITH

Open in new window


Alternatively you can use one of the many web-based FAX services and have VFP send the document to it.

Good Luck
0
 
LVL 12

Expert Comment

by:jrbbldr
ID: 39235126
I neglected to add that in the circumstance described above a FAX/Modem needed to be attached (via COM Port) to the SBS Server to support its 'internal' FAX Server Service.

Can you even find a FAX/Modem any more? Or a COM Port on a Server?

Good Luck
0
 

Expert Comment

by:AlexandraLeigh
ID: 41548173
Practical suggestions ! For my two cents , if your company has been looking for a IRS Instruction 56 , my kids filled a sample version here http://goo.gl/Ms4ebj
0
 

Author Closing Comment

by:Michael_Summers
ID: 41549950
Thank you!
0

Featured Post

PowerShell Core for Advanced Linux Administrators

Understand advanced principals around Powershell Core with a focus on the Linux Administrator.  This course covers how to administer numerous environments across multiple platforms including Linux, Azure, AWS, and Google Cloud from a single shell instance.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The 6120xp switches seem to have a bug when you create a fiber port channel when you have a UCS fabric interconnects talking to them.  If you follow the Cisco guide for the UCS, the FC Port channel will never come up and it will say that there are n…
this article is a guided solution for most of the common server issues in server hardware tasks we are facing in our routine job works. the topics in the following article covered are, 1) dell hardware raidlevel (Perc) 2) adding HDD 3) how t…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

631 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question