On Aug 11, 5:09 pm, "Ashish" <akohli_2...@hotmail.com> wrote:
> Thanks Ken, Thanks Mighty
> I got it now. To show something in reading pane we need to make change in
> mail. Without making change in mail we cant show anything extra in reading
> pane as reading pane is not editable.
> Well if a mail has attachment it shows an icon for it with subject in
> outlook explorer. If any mail has no attachment then can we show
> same/anyother icon at same place(after subject) using some programming. Is
> it possible?
> I did not see any property for this icon in outspy/MFCMAPI.
> " - " <kenslo...@mvps.org> wrote in messagenews:%23P$$S1oGKHA.4956@TK2MSFTNGP03.phx.gbl...
>
> > Custom forms won't display in the reading pane for the most part, and the
> > reading pane is not editable or modifiable. You'd have to create your own
> > window and overlay that over the reading pane using Win32 API calls, which
> > is not only tricky but has the potential to crash Outlook and even Windows
> > if you don't know what you're doing.
>
> > > >
> >
> >
>
> > "mightyCoCo" <mightyc...@googlemail.com> wrote in message
> >news:cd628338-dd25-45c9-b368-460e99b36f22@g31g2000yqc.googlegroups.com....
> > On Aug 11, 1:47 pm, "Ashish" <akohli_2...@hotmail.com> wrote:
> >> Sorry i get correct selected item
> >> To make change in preview window should i add info to mail or we can
> >> directly change preview window? Is it editable
>
> >> "mightyCoCo" <mightyc...@googlemail.com> wrote in message
>
> >>news:5d351c66-3e09-4e9c-babf-1d24e0f81a0a@d4g2000vbm.googlegroups.com....
> >> On Aug 10, 4:28 pm, "Ashish" <akohli_2...@hotmail.com> wrote:
>
> >> > Is it possible to edit mail right pane in outlook addin? When selecta
> >> > mail
> >> > in outlook right pane shows its field like subject,date
> >> > body,attachments
> >> > etc.
> >> > Can we show some extra information in right pane when select a mail.
> >> > Which
> >> > event is call when show right pane(select mail) for any mail
>
> >> if i got it right, you refer to the preview pane of an email.
> >> What Outlook version?
> >> Look into the Explorer.SelectionChanged event. this is triggered, when
> >> an item was selected.
> >> You may be able to modify certain information's in the selected item.
>
> > You could change the body of the eMail. But this change would be
> > persistent.
> > I don't know of a clean way to show a temporarily modified body.
> > You would need to save the original mail somewhere else and restore
> > it, when the selection changes.
>
> > If you need to have more fields net to subject/date etc, that might be
> > possible with custom forms. But I've never done this. Maybe someone
> > else has some insights / tips...
Look at the MailItem.Attachments method to add attachements to the
MailItem.
You can generate the attachement on the fly and add it as a binary
stream or write it on disk and give the Attachemts.Add function the
path to this file on disk.
You'd need to use the MailItem.Save method if you are finished to not
loose your changes.