View Single Post
  #2  
Old October 9th 07, 03:10 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Outlook 2003 or 2007 ? which one?

In terms of trusted code and not firing the security prompts, if your addin
uses the application object passed in OnConnection to your code to derive
all Outlook objects then it doesn't matter at all if it's Outlook 2003 or
2007.

PR_TRANSPORT_MESSAGE_HEADERS is available and easily retrieved from a
Redemption item:

const int PR_TRANSPORT_MESSAGE_HEADERS = 0x007D001E;

RDOMail mail = (RDOMail)rdoSession.GetItemFromID(olMail.EntryID,
olMail.Parent.StoreID, missing);

string headers = (string)mail.Fields(PR_TRANSPORT_MESSAGE_HEADERS);

The same can be done using Outlook 2007's PropertyAccessor object.

In this case PropertyAccessor wouldn't truncate your headers but any
properties in the PS_PUBLIC_STRINGS area or other user-created namespaces do
limit you to approximately 4K of data before the data is truncated. Some
property types will return up to 8K of data.

Of course any UI you create for Inspectors, if there is any, would be
different for the versions. For Outlook 2007 you'd use the Ribbon and for
Outlook 2003 you'd be using the CommandBars interfaces.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Amit" wrote in message
...
Hello Folks,

Company wants me to create an add-ins for Microsoft Outlook. They
(company)
asked me to decide whether Microsoft Outlook 2003 or Microsoft Outlook
2007
would be better.

Management would be happy if I go with Microsoft Outlook 2003 because they
don't need to buy licenses to update Microsoft Operating system as well as
Microsoft Office/ Outlook 2007 (Currently they are running Microsoft
Windows
2000 Prof. on client machine with Microsoft Office 2003).

As a developer I will face lots of limitation with Microsoft Outlook 2003
COM because my requirement is as follow:
1. Read a Mail (with internet header) and
2. Send it across through web service, which will save it to the database.
Both operations must be done without showing security dialog box that
Microsoft Outlook 2003 gives.

Now what I’ve gathered on 2007 development forum/ and available codes that
we can achieve both easily in Microsoft Outlook 2007.

If I go for Outlook 2003, obviously I've a choice of redemption. But I am
not sure if it is easy to get Internet header through it... (I tried to
use
SaveAs(…) option but it does not store entire header that I am looking
for -
RFC 822 format) .

What would you suggest me here – go for outlook 2003 or outlook 2007?

Please help me ASAP as I need to make decision in a day or two.

Thanks heaps.
Am



Ads