Programmatically set "automatically generate microsoft exchange views" ?

N

Neal

Hi all

I'm trying to find out how to set "automatically generate microsoft exchange
views" on various folders in Outlook 2003 programmatically. I can't find
much documentation on this.

I don't really care which programming environment I have to do this from.

The most promising was CDO folder property CdoPR_GENERATE_EXCHANGE_VIEWS
(&H36E9000B) as documented on CDOLIVE. Unfortunately this seems to be no
longer supported :-(

Can someone point me at some more in depth or up to date documentation, or
help me out here ?


Many thanks

Neal
 
K

Ken Slovak - [MVP - Outlook]

That's the only documentation on that property I've ever seen. Why do you
say it's not supported?
 
N

Neal

Ken, thanks for your interest.

2 things lead me to believe it's not supported:

I am using Interop.MAPI.dll v1.21.0.0 via c#

When I use the object browser to look at the properties available under
cdoPropTags, I do not see CdoPR_GENERATE_EXCHANGE_VIEWS, while I do see most
of the others mentioned on CDOLIVE.

I was just about to say when I try to find the property with the numeric
value rather than a property name it fails, and it's just started working !!
So I either made a mistake testing it last week, or by sheer power of you
thinking about it it started working :)

Thanks
 
N

Neal

Further investigation sheds more light, this only actually works against the
Inbox, any other folder (sent mail, contacts etc) all fail with

Error: System.Runtime.InteropServices.COMException (0x8004010F):
[Collaboration Data Objects - [MAPI_E_NOT_FOUND(8004010F)]]

Any ideas how to get to this for other folders other than inbox ?

cheers
 
K

Ken Slovak - [MVP - Outlook]

I don't know, I haven't used that property since the Exchange 5.5 days. I do
know however that using CDO 1.21 is not supported and mostly will blow up if
used from managed code.
 
N

Neal

I take it there is no other alternative at the moment other than:

- Do it in unmanaged environment (e.g vb6) or
- Wait for Outlook 2007 to roll-out in my environment
?


Ken Slovak - said:
I don't know, I haven't used that property since the Exchange 5.5 days. I
do know however that using CDO 1.21 is not supported and mostly will blow
up if used from managed code.




Neal said:
Further investigation sheds more light, this only actually works against
the Inbox, any other folder (sent mail, contacts etc) all fail with

Error: System.Runtime.InteropServices.COMException (0x8004010F):
[Collaboration Data Objects - [MAPI_E_NOT_FOUND(8004010F)]]

Any ideas how to get to this for other folders other than inbox ?

cheers
 
K

Ken Slovak - [MVP - Outlook]

Or try another API for managed code such as Redemption (www.dimastr.com),
even Extended MAPI isn't an option for managed code, it's not supported
either.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top