Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

User properties woe... MSG files... Office 2007

Avatar of WernerVonBraun
WernerVonBraunFlag for Ireland asked on
Visual Basic ClassicOutlook
6 Comments1 Solution541 ViewsLast Modified:
Hello Experts. We have a system that writes User Properties to Outlook Messages. That works great as long as the message is stored in Outlook. But when the user moves the message *out* of Outlook, for example by dragging it out of Outlook and dropping it on to their desktop so it is stored there as a .MSG file, then when the message is opened the User Properties are gone.

We looked at the AllowedNamedProps key in the Registry, but either we're not setting the values correctly, or it doesn't do what we think it will do. For example:

HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\AllowedNamedProps\{00020329-0000-0000-C000-000000000046}\MyLittleUserProperty with dword value Type, we tried values 0, 30, 3, 48 (which is HEX 30), none of it makes the slightest bit of difference. MyLittleUserProperty is supposed to be a String value.

We also looked at:
http://support.microsoft.com/kb/907985

and tried the suggestion under re-enabling the ability to create user properties ("not recommended") - but it already says there that it doesn't work for Office 2007 and indeed it seemed to make NO difference whatsoever.


Now, the User Properties are set and queried in an Outlook Addin that we wrote, so finally a possible solution might be to check in the Outlook Addin (this is where VB developers may be of help) whether the item that just got opened is an item that resides in Outlook itself or whether it's an MSG file that the user clicked on or that got launched in some way or other.

Now this is the REALLY bizarre thing: I cannot find anything - ANYTHING - in the Outlook Addin that will allow me to determine where the message came from. I looked at the Explorer object and ... nothing. The Inspector object ... nothing. Ultimately both of them lead me to a MailItem type object and it seems to think that the item resides in the Inbox, even if it was launched by double-clicking on an MSG file. There is nothing like a "path" property on the MailItem Object, nothing that tells me where it came from. Or is there?



Prrrrwlllleeeeeeazzzze help
ASKER CERTIFIED SOLUTION
Avatar of Chris Bottomley
Commented:
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answers