Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / February 2004

Tip: Looking for answers? Try searching our database.

Can I use Extended Mapi  to store info about MailItem in Outlook?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kristy - 15 Feb 2004 23:44 GMT
Hi

I am running Office 2000/XP.

I have a com add-in that can be used to create personalised emails.
If one of these emails is created I currently use Outlook "user
properties" so that I can identify it when it is sent and add some
"disclaimer" info to the bottom.

This works fine except that I want to be able to stop this from
printing (programmatically) on my pc or the pc I have sent the email
to.

I found a post in this newsgroup that said... "another option is to
create your Boolean user defined field using CDO code, which will
produce a field that Outlook won't know about and therefore won't
print".  This sounds like a great idea but I don't want to use CDO to
do it  (can't ensure that CDO 1.21 library will be loaded on every
pc).

I am hoping that someone can tell me if I can do a similar thing using
Outlook Redemption (extended MAPI)ie, which fields can I write to and
how do I access them?

Thanks

Kris
Ken Slovak - [MVP - Outlook] - 16 Feb 2004 14:22 GMT
You can do what you want using Redemption or Extended MAPI. Extended
MAPI can only be directly coded using C++ or Delphi and has a long
learning curve. Redemption can be used from VB or VBA and is a COM
wrapper for some of Extended MAPI.

There's sample code on the Redemption Web site that shows how to add
named properties to an item using Redemption. See the information
about HrSetOneProp there. Click on the Utilities button at the top of
the Web site to get there.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginners Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> Hi
>
[quoted text clipped - 23 lines]
>
> Kris
Kristy - 17 Feb 2004 03:32 GMT
> You can do what you want using Redemption or Extended MAPI. Extended
> MAPI can only be directly coded using C++ or Delphi and has a long
[quoted text clipped - 36 lines]
> >
> > Kris

Hi Ken

Thanks so much, using Named Properties worked like a charm!

Kristy
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.