Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Modifying the values of an Outlook inspector window (From,To..)

Geek News

Modifying the values of an Outlook inspector window (From,To..)
lsmiranda[ at ]gmail.com 3/21/2007 11:05:30 PM
Hi,

I have the from/to/body/etc fields of an email as individual strings.
I would like to recreate the mail item and provide it to the user as
an inspector window (that has 'reply'/reply to all/forward as the
inspector window, similar to double clicking on an existing email in
your inbox)...

I can construct a mail item, but the 'FROM' field is read only... so i
have a feeling i may need to tweak the inspector window...

I was thinking to intercept the inspector upon creation, set its
current item to my mailitem, and modify the FROM field in the actual
inspector window.. Are there any examples of how to modify these
fields? Is this field even modifyable in the inspector window?

any help appreciated, including what properties i should be looking at
related to inspector windows...

thanks!

Luis

Re: Modifying the values of an Outlook inspector window (From,To..)
"Michael Bauer [MVP - Outlook]" <mb[ at ]mvps.org> 3/22/2007 6:35:54 AM


To display a MailItem, call the item's Display method. To get its Inspector
call its GetInspector method.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Quick-Cats - The most effective way to assign Outlook categories:
http://www.shareit.com/product.html?productid=300120654&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)

Am 21 Mar 2007 16:05:30 -0700 schrieb lsmiranda[ at ]gmail.com:

[Quoted Text]
> Hi,
>
> I have the from/to/body/etc fields of an email as individual strings.
> I would like to recreate the mail item and provide it to the user as
> an inspector window (that has 'reply'/reply to all/forward as the
> inspector window, similar to double clicking on an existing email in
> your inbox)...
>
> I can construct a mail item, but the 'FROM' field is read only... so i
> have a feeling i may need to tweak the inspector window...
>
> I was thinking to intercept the inspector upon creation, set its
> current item to my mailitem, and modify the FROM field in the actual
> inspector window.. Are there any examples of how to modify these
> fields? Is this field even modifyable in the inspector window?
>
> any help appreciated, including what properties i should be looking at
> related to inspector windows...
>
> thanks!
>
> Luis
Re: Modifying the values of an Outlook inspector window (From,To..)
lsmiranda[ at ]gmail.com 3/22/2007 1:55:59 PM
Thanks. Just to clarify, maybe i should rephrase the question briefly.
I have no mailitem object. But i have, lets say from a database, 4
strings, the from/to/subject/body of an old mail. I want to
reconstruct an email message and provide inspector window. The FROM
field in a mailItem object is readonly (which makes sense), so any
ideas on how to provide valid 'from' data in the inspector?

On Mar 22, 2:35 am, "Michael Bauer [MVP - Outlook]" <m...[ at ]mvps.org>
wrote:
[Quoted Text]
> To display a MailItem, call the item's Display method. To get its Inspector
> call its GetInspector method.
>
> --
> Viele Gruesse / Best regards
> Michael Bauer - MVP Outlook
> Quick-Cats - The most effective way to assign Outlook categories:
> http://www.shareit.com/product.html?productid=300120654&languageid=1
> (German:http://www.VBOffice.net/product.html?pub=6)
>
> Am 21 Mar 2007 16:05:30 -0700 schrieb lsmira...[ at ]gmail.com:
>
> > Hi,
>
> > I have the from/to/body/etc fields of an email as individual strings.
> > I would like to recreate the mail item and provide it to the user as
> > an inspector window (that has 'reply'/reply to all/forward as the
> > inspector window, similar to double clicking on an existing email in
> > your inbox)...
>
> > I can construct a mail item, but the 'FROM' field is read only... so i
> > have a feeling i may need to tweak the inspector window...
>
> > I was thinking to intercept the inspector upon creation, set its
> > current item to my mailitem, and modify the FROM field in the actual
> > inspector window.. Are there any examples of how to modify these
> > fields? Is this field even modifyable in the inspector window?
>
> > any help appreciated, including what properties i should be looking at
> > related to inspector windows...
>
> > thanks!
>
> > Luis


Re: Modifying the values of an Outlook inspector window (From,To..)
"j" <Evgeny.Br[ at ]gmail.com> 3/23/2007 6:57:09 PM
Create new mailItem object and fill it fields with appropriate values,
after this delete the old mailItem.

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net