473,472 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

AdvancedSearch Outlook

Hi
"\http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/TestField\"
<> 'Value'";

This fileter in while using Outlook Advance search should give all those
mails which do not contain Value in TestField field but it is doing exact
match and not contain in. I got this filter by making a query in oulook.

If there is some other query plz tell me

Saurabh
Dec 15 '05 #1
3 3458
Saurabh,

It sounds like you want to use a "like" operator. Unfortunately, it
does not seem that is supported. It only supports equals, not equals,
exists, and not exists.

You would have to cycle through each item and test the field yourself.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Saurabh Sharma" <sa*****@hireproindia.com> wrote in message
news:O1**************@TK2MSFTNGP09.phx.gbl...
Hi
"\http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/TestField\"
<> 'Value'";

This fileter in while using Outlook Advance search should give all those
mails which do not contain Value in TestField field but it is doing exact
match and not contain in. I got this filter by making a query in oulook.

If there is some other query plz tell me

Saurabh

Dec 15 '05 #2
What platform are you using for this? Regular COM or VSTO? The VSTO approach
takes a NOT argument not <>. Not sure if it would be the same for COM. Check
to see.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:u4**************@TK2MSFTNGP11.phx.gbl...
Saurabh,

It sounds like you want to use a "like" operator. Unfortunately, it
does not seem that is supported. It only supports equals, not equals,
exists, and not exists.

You would have to cycle through each item and test the field yourself.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Saurabh Sharma" <sa*****@hireproindia.com> wrote in message
news:O1**************@TK2MSFTNGP09.phx.gbl...
Hi
"\http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-00000000
0046}/TestField\" <> 'Value'";

This fileter in while using Outlook Advance search should give all those
mails which do not contain Value in TestField field but it is doing exact match and not contain in. I got this filter by making a query in oulook.

If there is some other query plz tell me

Saurabh


Dec 15 '05 #3
I a using COM and it supports <>.
Nicolas - i used advance search so that i dont have to parse all mails as it
becomes slow. :(
I will look for some other work around. It supports LIKE and but doesnt
support NOT LIKE

Thanx
Saurabh

"Alvin Bruney - ASP.NET MVP" <www.lulu.com/owc> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
What platform are you using for this? Regular COM or VSTO? The VSTO
approach
takes a NOT argument not <>. Not sure if it would be the same for COM.
Check
to see.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in
message news:u4**************@TK2MSFTNGP11.phx.gbl...
Saurabh,

It sounds like you want to use a "like" operator. Unfortunately, it
does not seem that is supported. It only supports equals, not equals,
exists, and not exists.

You would have to cycle through each item and test the field
yourself.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Saurabh Sharma" <sa*****@hireproindia.com> wrote in message
news:O1**************@TK2MSFTNGP09.phx.gbl...
> Hi
> "\http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-00000000
0046}/TestField\" > <> 'Value'";
>
> This fileter in while using Outlook Advance search should give all
> those
> mails which do not contain Value in TestField field but it is doing exact > match and not contain in. I got this filter by making a query in
> oulook.
>
> If there is some other query plz tell me
>
> Saurabh
>
>



Dec 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Fritz Switzer | last post by:
Can anyone provide a small snippet in C# that pulls out the Contacts in Outlook XP. I've seen a couple of examples in C++ and VB in previous newsgroup posts, but either the originals didn't work...
10
by: John | last post by:
Hi When I open a new outlook email from vb.net, sometimes outlook is very slow to appear or occasionally outlook freezes completely. I am targeting mixed office2000/xp environments so I am...
9
by: Srinivas | last post by:
hi all how to access the outlook user profiles through VB.net any help.... thanks in advanc Srinivas
9
by: George McCullen | last post by:
I have an Outlook 2003 using Exchange Server 2003 Public Contacts Folder containing 20,000 Contacts. I am writing a VB .Net 2003 program that loops through all the contacts in a "for each oCt in...
3
by: John | last post by:
Hi I am trying to access outlook contacts folders and delete the contacts that do not contain a certain category value in the categories field. I have written the below code but am stuck with...
7
by: Chris Thunell | last post by:
I'm trying to loop through an exchange public folder contact list, get some information out of each item, and then put it into a vb.net datatable. I run though the code and all works fine until i...
8
by: Li Pang | last post by:
Hi, I used following codes to pass a message item from CDO to Outlook. They worked fine when I used outlook 2000, but get an error of "Specified cast is not valid." when I used Outlook 2003....
2
by: msielski | last post by:
I am posting this here since I don't see an Outlook programming group specific to .net but only VBA. Please let me know if I'll have better luck posting elsewhere. I am writing a VB.NET...
3
by: wizzbangca | last post by:
Hi everyone. Having problems with a utility I am writing for work. The previous IT Director thoughtfully allowed 3 (2000, xp, 2003) versions of outlook to be installed rather than 1. Now I need...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.