C++/VB - Strike-out subject of an appointment
Asked By Hans Schmidt
19-Nov-09 10:05 AM
Hello,
i've got the question if it is possible with extended Mapi to change
the subject on an appointment from normal to striked out. I mean the
same way if you delete a IMAP message. Then the subject is striked out
and the whole message is greyed.
Looking forward to your answers
Greets Hans
Outlook
(1)
OutlookSpy
(1)
Greets
(1)
IMAP
(1)
Ine
(1)
Dmitry Streblechenko replied to Hans Schmidt
Sure, this is nothing but custom view formatting.
Out of the box, Outlook displays the strike-out for the messages with the
following named property set to 1:
{00062008-0000-0000-C000-000000000046, 0x8570, PT_LONG
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
Hans Schmidt replied to Dmitry Streblechenko
First of all thank you for your answer.
Unfortunately that does not work for me. If i create an appointment
with this named property 0x8570
(ImapDeleted) and set it to 1 nothing changed. The appointment is
displayed as before. It is possible that
this only works for mails but not for appointments?
Greets Hans
Dmitry Streblechenko replied to Hans Schmidt
Again, this has nothing to do with particular item kinds, it has to do with
the folder views: - in Outlook, go to View | Current View | Customize
Current View, click "Automatic Formatting". Regular mail folder views define
strike through formatting for the expired e-mail. Calendar folders do not;
but you can customize the view manually or programmatically.
--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
First of all thank you for your answer.
Unfortunately that does not work for me. If i create an appointment
with this named property 0x8570
(ImapDeleted) and set it to 1 nothing changed. The appointment is
displayed as before. It is possible that
this only works for mails but not for appointments?
Greets Hans
Hans Schmidt replied to Dmitry Streblechenko
OK, now it gets a little bit clearer.
I had a look View | Current View | Customize | Automatic Formatting
of an IMAP Folder. There for expired mails a rule is set for setting
font to strike out.
Then i had a look at the same of an calender folder. If i add a new
rule there is only
the possibility to change colors but no possibility to change the font
for example.
How can i archive to get the same options as in the IMAP folder?
Furthermore i'm interested how to set this programmatically.
Using Google searching for "custom view formatting" leads to nothing.
Thanks in advance
Greets Hans
th
ine
;
he
.
t
name. With this line: Application.Session.CurrentUser.Name i can get the profile name with Outlook 2007. Unfortunately that does not work with Outlook 2003. As a workaround i thought i write a Delphi DLL where i get the possible to pass Application.Session.MAPIOBJECT to the Delphi DLL. How can i archieve this? Greets Hans Win32 Messaging Discussions Application.Session.MAPIOBJECT (1) Outlook 2003 (1) Outlook 2007 (1) Intf.QueryInterface (1) MAPIInitialize (1) PbGlobalProfileSectionGuid (1) HrGetOneProp (1) PSPropValue (1) Pass it in your Delphi code QI it for IMAPISession. - - Dmitry Streblechenko (MVP) http: / / www.dimastr.com / OutlookSpy - Outlook, CDO and MAPI Developer Tool - Hi, do you have or anyone else an example how to get the IUnknown from Application.Session.MAPIOBJECT? I cannot find IUnknown in C#. Greets Hans Declare it as object in .Net. In your Delphi COM object OleVariant would work
a mail folder. Therefore i had a look at the Properties of the IMapiFolder with OutlookSpy. For example in a Contactfolder there is the property PR_CONTAINER_CLASS IPF.Contact But in mail that this is a mail folder. How can i discover that? Thanks in advance and greets Hans Win32 Messaging Discussions Outlook (1) IMapiFolder (1) OutlookSpy (1) Contactfolder (1) Greets (1) If PR_CONTAINER_CLASS is not set, assume IPF.Note. - - Dmitry Streblechenko (MVP) http: / / www.dimastr.com / OutlookSpy Outlook, CDO and MAPI Developer Tool - keywords: Discover, if, the, selected, folder, is, a, mail, folder a mail folder. Therefore i had a look at the Properties of the IMapiFolder with OutlookSpy. For examp
C++ / VB Hello, i'm searching for a way to open an existing IMessage in Outlook, for example an Appointment. Is there a way to do this. Or must i convert AppointmentItem. If it is the case then can you describe me how to do that. Greets Hans Win32 Messaging Discussions IMAPISession.PrepareForm (1) IMAPISession.ShowForm (1) ConvertAppointmentItem.EntryID (1) Outlook (1) Mailitem.Display (1) OutlookSpy (1) IMessage (1) Greets (1) ConvertAppointmentItem.EntryID property from a hex strign to a binary array and use it it to a hex string, call Namespace.GetItemFromID. - - Dmitry Streblechenko (MVP) http: / / www.dimastr.com / OutlookSpy - Outlook, CDO and MAPI Developer Tool - Hello, i think i have phrased it the wrong way mailitem i would call Mailitem.Display(true). Is there a possibility to show the IMessage? Greets Hans ay a Sure, call IMAPISession.PrepareForm, then IMAPISession.ShowForm - - Dmitry Streblechenko (MVP) http: / / www
its possible how can i archieve this behaviour? I am in a Exchange Client Extension. Greets Hans Win32 Messaging Discussions Outlook 2010 (1) Outlook (1) IOutlookExtCallback (1) OutlookSpy (1) Greets (1) Archieve (1) Use the Outlook Object Model to call MailItem.Display. You can use OOM from an ECE (ECEs will not be supported in Outlook 2010) - search for the IOutlookExtCallback interface. - - Dmitry Streblechenko (MVP) http: / / www.dimastr.com / OutlookSpy - Outlook, CDO and MAPI Developer Tool - keywords: Is, it, possible, to, open, email, editor, windows