A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Redemption MAPITable



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 11th 06, 07:39 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Redemption MAPITable

You need to pass a variant array, which is not the same as an array of
objects in C#.
I don't know if C# allows to do that in a different way, but on the low
level you will need to call the SafeArrayCreate Windows API function.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"jim" wrote in message
...
I am trying to use MAPITable to speed up retrieval. I am using C#, but it
gives an exception: "IMAPITable::SetColumns() returned 0x80070057". What
object in C# do I need to pass to table.Columns ?

NameSpace ns = this.OutlookApp.GetNamespace("MAPI");
MAPIFolder folder =
ns.GetDefaultFolder(OlDefaultFolders.olFolderConta cts);
Redemption.MAPITable table = new Redemption.MAPITableClass();
table.Item = folder.Items;

object[] cols = new object[]{0x3001};
table.Columns = cols;
table.GoToFirst();



Ads
  #2  
Old January 12th 06, 05:09 AM posted to microsoft.public.outlook.program_addins
jim
external usenet poster
 
Posts: 26
Default Redemption MAPITable

I am trying to use MAPITable to speed up retrieval. I am using C#, but
it gives an exception: "IMAPITable::SetColumns() returned 0x80070057".
What object in C# do I need to pass to table.Columns ?

NameSpace ns = this.OutlookApp.GetNamespace("MAPI");
MAPIFolder folder = ns.GetDefaultFolder(OlDefaultFolders.olFolderConta cts);
Redemption.MAPITable table = new Redemption.MAPITableClass();
table.Item = folder.Items;

object[] cols = new object[]{0x3001};
table.Columns = cols;
table.GoToFirst();
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:25 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.