I have been working on a web Application that allows an individual to fax
a page with the body based on an HTML built string. Below is the code I
am using behind an asp.net button:
Dim myOLApp As New Outlook.Application
Dim myOLItem As Outlook.MailItem

myOLItem = myOLApp.CreateItem(Outlook.OlItemType.olMailItem)
myOLItem.BodyFormat = Outlook.OlBodyFormat.olFormatHTML
With myOLItem
.To = GetFax()
'.Subject = GetSubject()
.HTMLBody = GetBody1()
.CC() = GetCC()
.Send()
End With

'cleanup
myOLApp = Nothing
myOLItem = Nothing

I have a functions for the To, CC, Subject, and the HTMLBody. Everything
works great for email, and to some extent for faxing. I have only one problem.
When it faxes it recognizes some of the html tags in the string such as
CENTER, BOLD, and such but it does not seem to recognize the TABLE tags at
all, there for my fax is coming out unformatted for the most part. It even
gets the variable data for the html string that is built.

This is the the hardware set up. I have a Windows 2000 server with Fax service
installed and Exchange Server 2000 as well. I am using Windows XP Pro clients
with the Fax client installed and in their Outlook I have the MAPI fax transport
installed as one of the email clients. It all works perfect, not problems
except that it will not do the proper formatting for the html page. I believe
it has to have something to do with either the Fax driver that Microsoft
Provides, or with the outlook object API they provide. I say this because
the CC copy goes to an email address and it comes back great with the correct
formatting and all, but the fax of the HTML page comes back unformatted,
or it appears that way. Does anyone have a suggestion to fix this? If you
need to see more of my code I can put it up, no problem, I just need to find
a solution.