Darb:
There's really no convient way to directly automate the Windows 2000 / Xp
fax service. There is an Active X object called the "Microsoft Fax Service
Extended Com Tools" which allows you to automate the fax service itself.
However, you need to be able to supply that object with a faxable file
(normally a tiff object). You'd need a Tiff printer driver to support using
the Active X method in its best form.
On the other hand, there is also a method to automate the output via
Outlook. To do this, you first need to add the fax service to your Outlook
profile.
If you are using Outlook Xp or 2003, then go to Tools - > Email Accounts and
choose to add a new account. When the account type dialog pops up, choose
Additional Servers. In the next dialog you should see the "Fax Mail
Transport". Choose that and then click next.
Then once the fax transport is added, you can use the SendObject method to
send the fax via Outlook. To do that you specify the recipient's fax
number in the To: address property of SendObject in the following format:
[Fax: 800-555-1212] with the brackets.
However there are many challenges with the send object method:
1.) You have to manually go in to the Outlook mail item and set its sending
account to be the Fax Mail Transport rather than your default mail account.
2.) As with any other use of Send Object, you are limited to using RTF, text
or HTML format for the output, which can cause problems.
3.) Outlook's security issues will require you to approve every outgoing
fax.
4.) You can't filter a report for a specific recipient when using
SendObject.
End result is that automating use of the built in Xp fax system is not a
very good route to try and go. If you want to send lots of faxes, then you
might look at using Symantec's WinFax (version 10.03 is the latest, don't
use version 10.02 it doesn't support automation). That can be automated
fairly directly. If you have a copy of that, then you could use something
like our WinFax library to easily send faxes (including filtering your
report) with about 6-8 lines of code; you'd find that on our web.
HTH
--
Steve Arbaugh
ACG Soft
http://ourworld.compuserve.com/homepages/attac-cg
Darb said:
Thanks for taking the time to read my question.
Has anyone tried sending a report to XP's faxing
function? XP's faxing function is set up like a
printer. So I can send my report as a fax, but I have to
use the wizzard to complete the process. I would like
this process to be automated (not have to use the
wizzard).
Is anyone aware of some commands, or command line info I
can use to achieve my goal?
Thanks again,
Darb