Fax a generated document

J

Juan

Hi everyone,

in the app I am developing, the last requirement from the customer is to fax
de document. I figure the easiest solution is to use Windows built-in fax
printer to achieve this. Is it as easy as send the document to print?
I assume I will have to use the "prinout" method.

Thanks, from Spain

Juan Magaña
 
G

Graham Mayor

Dim sCurrentPrinter As String
sCurrentPrinter = ActivePrinter
ActivePrinter = "Fax"
Application.PrintOut FileName:=""
ActivePrinter = sCurrentPrinter

Check the fax printer driver is actually called Fax !
The code switches to the fax driver prints, then switches back to whatever
printer was previously applicable.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP
E-mail [email protected]
Web site www.gmayor.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
 
J

Juan

Thanks, Graham, great tip but...
I am going to have to use the FAXCOMLib library, because the fax must be
sent from a remote computer without human internvention.
If someone is interested and I am capable of what I need, I can post the
code.
 
Top