Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

email HTMLBody with Word as Email Editor

0 views
Skip to first unread message

Mikey

unread,
Nov 21, 2007, 2:25:01 PM11/21/07
to
Long story short, my addin basically gives the user a couple of templates to
choose from and lets them create a flyer based on HTML code. The user also
has the option to include up to 3 personal images which can be positioned
anywhere on the page using absolute positioning.

As we know, Word is the default e-mail editor in OL2003 and the only email
editor in OL2007. I now have an HTML doc I want to basically convert to an
Outlook email. I am creating a new email in OL and adding images as
attachments and using redemption (or the ol2007 propertyaccessor) to set the
fields needed to make the attachments hidden and assign CID's to them. I then
stuff the modified HTML (replaced img src with CID's) into the
olMail.HTMLBody property. Then for some dumb reason word wants to become
visible. I hide it and then move on to some other stuffs that are required
and then show the mail item when I'm done. All looks great except the
background of a table isn't shown (until I actually send the mail item) and
the big annoying problem is that word decides to totally ignore the absolute
position of the dynamicly added images. I have looked ALL OVER and can not
find any suggestions or recomendations on how to absolutely postion something
in HTML so that it gets converted to its Microsft Word HTML equivelant. Does
anyone have any suggestions? Why does MS make an HTMLbody property if it
doesn't accept standard HTML?
-Thanks in advance
Was this post helpful to you?

Sue Mosher [MVP-Outlook]

unread,
Nov 21, 2007, 7:51:50 PM11/21/07
to
Security considerations and issues related to Word govern the limitations on Outlook HTML. You'll want to review the document at http://msdn2.microsoft.com/en-us/library/aa338201.aspx that explains what elements and attributes are and are not supported. I'm not sure absolute positioning is possible at all.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Mikey" <Mi...@discussions.microsoft.com> wrote in message news:6829D0B3-16BE-4C20...@microsoft.com...

Mikey

unread,
Nov 22, 2007, 2:55:00 PM11/22/07
to
Thanks Sue....I'd been looking all over for something like that to spell it
out in black and white, but was searching for OL2003 and hadn't found that
page. I'll look it over after the T-Day dinner. Hope you have/had a good one!

Mikey

unread,
Nov 22, 2007, 3:09:02 PM11/22/07
to
Oh, and just an FYI....when I displayed the e-mail in question I was able to
set the image to use abs positioning via the menu options of the Word Email.
In looking at the resulting code, some word specific HTML tags were
used...<v:shape> for GTE VML 1 if statement and <span> for !VML if statement.
I tried using similar statements but it didn' work so I must be missing
something else thats needed. What I dont fully understand is....if Word
supports doing it (and is obviously does since I can do it via the menu), why
doesnt it convert it properly from regular HTML to Word's fashion of HTML? Of
course thats not a question aimed at you...but rather MS if they happen to be
watching.

-Thanks again.

0 new messages