Did you look at the 2nd code snippet?

Signature
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> Thanks - but that looks really messy! So, there's no other way to do it
> other than by using undocumented MAPI properties? Ouch.
[quoted text clipped - 3 lines]
>
> > See http://www.outlookcode.com/d/code/htmlimg.htm
> > > I recently ran into an interesting question in one of the Access
> e-groups
[quoted text clipped - 20 lines]
> > >
> > > TIA,
John Viescas - 24 Jun 2004 02:23 GMT
Sue-
Yes, I did. And I even tested it. And as advertised, the picture doesn't
display properly in the message and also appears as a regular attachment.
But the objective is to create the same effect you get from the UI when you
create a new HTML message and then choose Picture from the Insert menu.
Surely Outlook isn't using MAPI for that -- or is it?
Thanks,

Signature
John Viescas
> Did you look at the 2nd code snippet?
>
[quoted text clipped - 34 lines]
> > > >
> > > > TIA,
Sue Mosher [MVP-Outlook] - 24 Jun 2004 02:35 GMT
There are a *huge* number of features that are not exposed in the Outlook object model.

Signature
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> Sue-
>
[quoted text clipped - 6 lines]
> Thanks,
> > Did you look at the 2nd code snippet?
> > > Thanks - but that looks really messy! So, there's no other way to do it
> > > other than by using undocumented MAPI properties? Ouch.
[quoted text clipped - 36 lines]
> > > > >
> > > > > TIA,
John Viescas - 24 Jun 2004 14:06 GMT
Bummer. In Access, you can use RunCommand (or DoMenuItem in older versions)
to execute any command available on the menus.
Thanks for the tips.

Signature
John Viescas
> There are a *huge* number of features that are not exposed in the Outlook object model.
>
[quoted text clipped - 7 lines]
> >
> > Thanks,
Andrew Cushen - 24 Jun 2004 16:24 GMT
John-
If you don't mind kluges, you can always use SendKeys to
click on menus. See this link:
http://www.dimastr.com/outspy/howto.htm#oom2
on the OutlookSpy website (an indispensable tool for heavy
Outlook lifting) re: how to identify toolbar buttons o you
can click them programmatically.
That's about the only way I can think of do do what you
want.
-Andrew
=============================================
>-----Original Message-----
>Bummer. In Access, you can use RunCommand (or DoMenuItem in older versions)
[quoted text clipped - 19 lines]
>
>.
John Viescas - 26 Jun 2004 18:50 GMT
Ugly, ugly. Because what I want to do is insert a picture inline, I'd have
to make the new message window visible, make sure I'm positioned within the
message correctly, do a SendKeys of the file name and Enter, then do
Btn.Execute.
I think I'll stick with Access programming... <s>
Thanks for the link!

Signature
John Viescas
> John-
>
[quoted text clipped - 42 lines]
> >
> >.
Sue Mosher [MVP-Outlook] - 30 Jul 2004 23:33 GMT
You can use CommandBars (not a kludge) to execute any toolbar or menu command in Outlook, just as you can in any other Office program. See http://www.outlookcode.com/d/tips/commandbarfun.htm
The problem with this case and many others is that a lot of functionality is not exposed even in CommandBar commands.

Signature
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
> Bummer. In Access, you can use RunCommand (or DoMenuItem in older versions)
> to execute any command available on the menus.