Click to See Complete Forum and Search --> : Output to fax machine and modem
kisijo
Nov 10th, 1999, 11:17 AM
Has any one some ideas on where to start to access both a external fax machine and modem fax machine from within a VB application.
rbeck
Jan 23rd, 2000, 06:54 AM
I've done this using automation to fax word documents from vb. the same method would probably work for excel documents. however, there is a major problem which is with the fax program. I've been using microsoft fax. the problems are machine dependent - that is to say it might work fine on one machine and not on the other. When it works, it works just fine, with no problems.
the two problems i've encountered are:
1) when sending multiple faxes, faxes are not queued, only the first one gets through
2) no faxes get through
in both cases, you get a "no transport provider" which means there is no fax software installed, but in fact there is.
this is not a problem with VB at all, just the underlying fax software. I'm still working on this problem and will be trying Winfax this coming week.
The general method i've used is:
1) create a word application object
2) create a word document object
3) make the word document into whatever you want
4) use the word applications SENDFAX method to fax it.
this method requires either exchange or outlook as well as some underlying fax software.
I am also looking in to using the FAX objects provided in the SDK, but haven't got far enough with that to make any statements about it.
shooey
Jul 25th, 2001, 09:29 PM
Has anybody figured out how to use sendfax in vba?
nemaroller
Jul 26th, 2001, 12:04 AM
Well, this might be helpful, i dont know, but fax drivers should be available through the Printer object, at least my program can send reports to the fax driver... without the need for Word or Exchange...
simply its like printing to the printer... you just have to enumerate and identify the fax driver from the Printers collection.
So if thats something that you're wanting to do, let me know.
shooey
Jul 26th, 2001, 05:47 AM
printing to the fax can be done .... but how could you automatically pass the fax number to the fax software so that it is done without user input.
nemaroller
Aug 1st, 2001, 12:16 AM
(Pulled from the internet)
Hi All,
Sending Faxes through VB and MAPI is just like sending Mail. I refer you to one of my previous tips How to send Mail using VB (with Microsoft MAPI Components).Click here (http://www.absolutelydiverse.com.au/vb_tips/hardcore/tip_1.htm)
Use exactly the same procedure here except when it comes to adding the MAPIMessages1.RecipDisplayName. Instead of supplying an email address here you can supply a fax number in the following format:
MAPIMessages1.RecipDisplayName = "[FAX:myfaxname@111 1111]".
Happy Faxing...
Regards,
Scott Pyke
shooey
Aug 1st, 2001, 05:33 AM
Thanks.
Does this work within vba? (not vb)
- adam
Outrage01
Aug 1st, 2001, 03:07 PM
MAPIMessages1.RecipDisplayName = "[FAX:myfaxname@111 1111]".
That will only work if you want to fax through the internet but thats not a great idea. You have to make sure your outlook is setup right to do it. And its not fool proof.
Lyla
Aug 2nd, 2001, 01:35 AM
Outrage01,
It worked for me !!!!!
monarjis
Nov 26th, 2001, 02:55 PM
MAPIMessages1.RecipDisplayName = "[FAX:myfaxname@111 1111]".
What do you mean with myfaxname ??? I have only a faxmodem. What is myfaxname???
Thanks
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.