Click to See Complete Forum and Search --> : Faxing in VB


Arjun M
February 28th, 2000, 07:40 AM
Can we fax using VB? Is there any component?

Software Engineer
Bangalore

Kyle Burns
February 28th, 2000, 09:06 AM
If you're using a fax program that creates a "fax printer", you can print to that printer.

wenyen
March 29th, 2000, 11:53 PM
Hope my problem could give you a good start... cheer...

I am writing an email/fax application using the VB MAPI control. And the code is basically like this:

MAPISession.SignOn
MAPISession.NewSession = True

MAPIMessages.SessionID = MAPISession.SessionID

MAPIMessages.Compose
MAPIMessages.MsgIndex = -1
MAPIMessages.RecipAddress = "xxx@xxxx.xx"
MAPIMessages.MsgSubject = "xxxxx"

MAPIMessages.AttachmentIndex = 0
MAPIMessages.AttachmentType = mapData
MAPIMessages.AttachmentPathName = "c:/test.txt"

MAPIMessages.Send

I have both Microsoft Outlook and Outlook Express on my machine. Everything looked pretty good as I was able to get my application to work with Outlook Express, but it fails when using Microsoft Outlook.

The error occurs on the line:
MAPIMessages.Send
and I get the following message:
"Unspecified Error Occurred 32002"

Is there any known problems using the MAPI control with Microsoft Outlook? Any information on this??

Thanks in advance.