Faxing with VB

How do I create a fax in a VB program that will be stuffed in the outbox of MS Fax?
LVL 32
DrDamnitAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bob LambersonSoftware EngineerCommented:
0
Bob LambersonSoftware EngineerCommented:
0
DrDamnitAuthor Commented:
I really need to use either MS Fax or WinFax 10.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

aikimarkCommented:
If you have a fax device defined, then why not just print to it?
0
Bob LambersonSoftware EngineerCommented:
Came across another site that may help you see...... Send a Fax Using Outlook/Microsoft Fax   at  http://www.freevbcode.com/ShowCode.Asp?ID=2402

Bob
0
koolnurdCommented:
'What all you require on the system installed are
'1. Microsoft Fax (from \tools\oldwin95 folder on Win98 CD.)
'2. Microsoft Outlook. (not Outlook Express)


TelNo = "223344" '*** You can use any intl format also
'Create a mail item.
Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
    With objOutlookMsg
        .To = "[Fax:" & TelNo & "]"
        .Subject = "Automated System Reports."
        .Body = "To Mr. XYZ" & Chr(10) & " This is an Automated Transmission from the computer." & Chr(10) _ & "Send Fax Completed." & Chr(10) & "------ End of Doc ------"
        .Importance = olImportanceHigh
        .Attachments.Add ("C:\....") 'Pathname+filename with ext
        .Send
    End With
Set objOutlookMsg = Nothing
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DrDamnitAuthor Commented:
KoolNurd:

Are there some references to that? objOutlook is undefined.
0
DrDamnitAuthor Commented:
KoolNurd:

I fixed that problem (you were using my code above...duh.... my bad); however, when I fire the code, I get this:

Your message did not reach some or all of the intended recipients.

      Subject:      Automated System Reports.
      Sent:      11/8/2004 3:56 AM

The following recipient(s) could not be reached:

      '770xxxxxxx' on 11/8/2004 3:56 AM
            None of your e-mail accounts could send to this recipient.

I "x'ed" out the phone number on purpose to protect the innocent. What am I doing wrong? Why is it not going to MS Fax?
0
DrDamnitAuthor Commented:
Connection to fax server failed. Do I have fax server installed right? How do I know? I have faxing installed....
0
koolnurdCommented:
did you get  

'1. Microsoft Fax (from \tools\oldwin95 folder on Win98 CD.)
0
Sar1973Commented:
Does this work also with XP Console fax?

TelNo = "223344" '*** You can use any intl format also
'Create a mail item.
Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
    With objOutlookMsg
        .To = "[Fax:" & TelNo & "]"
        .Subject = "Automated System Reports."
        .Body = "To Mr. XYZ" & Chr(10) & " This is an Automated Transmission from the computer." & Chr(10) _ & "Send Fax Completed." & Chr(10) & "------ End of Doc ------"
        .Importance = olImportanceHigh
        .Attachments.Add ("C:\....") 'Pathname+filename with ext
        .Send
    End With
Set objOutlookMsg = Nothing
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.