Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filtering Outlook 2002 Views Programmatically

Status
Not open for further replies.

sethmurphy

Programmer
Joined
Oct 3, 2002
Messages
2
Location
US
I have a COM add-in that I would like to use custom view with.
so, I Installed Outlook 2002 wanting to use the new XML defined views.
I was able to create a view, view the XML, etc...
When I added a filter through the GUI, and then viewed the XML through code, the filter element seemed to be in the view.
So through code I retrieved the XML, modified the string to search for in one of the filter conditions.
I then retrieved the XML again to verify my changes.
However, going back to the GUI filtering was set to off.
I found a PP Presentation from Sue Mosher at an ASP.NET conference that mentioned the FILTER element was read only.


Is this so? Microsoft makes no mention of it, and even this was an obscure reference. Does anyone know this to be true, or Has anyone foud a work around not "Officially" supported by Microsoft.

The problem I would like to use this solution for is to enable better searching for categories and my own subcategories as custom fields. I would like to scan a folder instead of using the limited keyword searching available and create a filter based on the mileage property where I store a unique ID(Contacts only).
Sounds simple enough.

Thanks in advance for any suggestions
1. create a new view(or use a generic template with a simple dummy filter)
2. Get the view.XML
3. Add(or modify)the filter element
4. Set view.XML to the new XML

I have done this, but the filter is set to OFF when checking the view in the GUI.
 
Ok, so after much searching it was buried in microsoft's site, sorry.

In order to programmatically define filters in a custom view it is neccessary to upgrade to to Office XP Service Pack 2.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top