Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Sun, 17 Aug 2008 21:34:46 -0700 (PDT),    group: microsoft.public.platformsdk.mapi        back       


Fetch the Message In Order   
Hi there,
I want to fetch the message from my PST file as it is ordered and
displayed in Outlook Express or Office Outlook.
If i sort by name or date or sender or whatever then i would require
to fetch the message in the same order from that PST?

Can this me done if yes how?

Thank You
miztaken
date: Sun, 17 Aug 2008 21:34:46 -0700 (PDT)   author:   miztaken

Re: Fetch the Message In Order   
How to know in which order is the folder sorted so that i can fetch
the Message supplying the same input?

I can see HRESULT HrQueryAllRows(
  LPMAPITABLE ptable,  LPSPropTagArray ptaga,  LPSRestriction pres,
LPSSortOrderSet psos,  LONG crowsMax,  LPSRowSet FAR * pprows );

accepts LPSSortOrderSet
cant we use this ...
if yes how can we do that..

pls help me

miztaken
date: Tue, 19 Aug 2008 04:23:05 -0700 (PDT)   author:   miztaken

Re: Fetch the Message In Order   
You can't, at least not from IMAPITable.
The sort order is stored in the folder view descriptor. The format is 
undocumented of course.

-- 
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool
-
"miztaken"  wrote in message 
news:6e38246f-3d99-4d49-b7b7-a6ffe7fbd9fd@w1g2000prk.googlegroups.com...
> How to know in which order is the folder sorted so that i can fetch
> the Message supplying the same input?
>
> I can see HRESULT HrQueryAllRows(
>  LPMAPITABLE ptable,  LPSPropTagArray ptaga,  LPSRestriction pres,
> LPSSortOrderSet psos,  LONG crowsMax,  LPSRowSet FAR * pprows );
>
> accepts LPSSortOrderSet
> cant we use this ...
> if yes how can we do that..
>
> pls help me
>
> miztaken
date: Tue, 19 Aug 2008 14:08:01 -0700   author:   Dmitry Streblechenko

Re: Fetch the Message In Order   
> You can't, at least not from IMAPITable.
> The sort order is stored in the folder view descriptor. The format is
> undocumented of course.

So that means we cant sort or know the sort order of any Folder
(Outlook).
Is there any workaround?

Thanks
miztaken
date: Wed, 20 Aug 2008 11:43:27 -0700 (PDT)   author:   miztaken

Re: Fetch the Message In Order   
No, when Outlook displays a folder, it uses a private instance of IMAPITable 
retrieved from IMAPIFolder::GetContentsTable.
How that table is sorted is known only to Outlook.
Why is this important?

-- 
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool
-
"miztaken"  wrote in message 
news:bd9ed493-beff-49c7-a21e-89ed9368aa63@t54g2000hsg.googlegroups.com...
>> You can't, at least not from IMAPITable.
>> The sort order is stored in the folder view descriptor. The format is
>> undocumented of course.
>
> So that means we cant sort or know the sort order of any Folder
> (Outlook).
> Is there any workaround?
>
> Thanks
> miztaken
>
date: Wed, 20 Aug 2008 13:59:18 -0700   author:   Dmitry Streblechenko

Re: Fetch the Message In Order   
> No, when Outlook displays a folder, it uses a private instance of IMAPITable
> retrieved from IMAPIFolder::GetContentsTable.
> How that table is sorted is known only to Outlook.
> Why is this important?

Hi,
Just wanted to fetch the Message from PST in the way it is ordered as
seen in Outlook.
Just for consistency when viewed and fetched

miztaken
date: Wed, 20 Aug 2008 21:56:50 -0700 (PDT)   author:   miztaken

Re: Fetch the Message In Order   
Do you mean the selected message(s)? Have you looked at the 
Applicationb.ActiveExplorer.Selection collection in the Outlook Object 
Model?

-- 
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool
-
"miztaken"  wrote in message 
news:40241116-dffb-4bb1-bbac-d66b97e965e8@w1g2000prk.googlegroups.com...
>> No, when Outlook displays a folder, it uses a private instance of 
>> IMAPITable
>> retrieved from IMAPIFolder::GetContentsTable.
>> How that table is sorted is known only to Outlook.
>> Why is this important?
>
> Hi,
> Just wanted to fetch the Message from PST in the way it is ordered as
> seen in Outlook.
> Just for consistency when viewed and fetched
>
> miztaken
>
date: Thu, 21 Aug 2008 10:35:37 -0700   author:   Dmitry Streblechenko

Re: Fetch the Message In Order   
On Aug 21, 10:35 pm, "Dmitry Streblechenko" 
wrote:
> Do you mean the selected message(s)? Have you looked at the
> Applicationb.ActiveExplorer.Selection collection in the Outlook Object
> Model?
No i dont mean the selected messages.

User opens PST in Outlook, check the messages.. sorts them by sender
or date or subject or attachment then close the PST.
Now when my application reads same PST then i would love to preserve
its view state..i.e. order in which the user customized last time?

Is this possible?

miztaken
date: Fri, 22 Aug 2008 01:53:06 -0700 (PDT)   author:   miztaken

Re: Fetch the Message In Order   
Only by hacking the format of the view descriptor in thaat folder.

-- 
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool
-
"miztaken"  wrote in message 
news:40225a75-509e-4f24-9026-0ed35eb44d16@j1g2000prb.googlegroups.com...
On Aug 21, 10:35 pm, "Dmitry Streblechenko" 
wrote:
> Do you mean the selected message(s)? Have you looked at the
> Applicationb.ActiveExplorer.Selection collection in the Outlook Object
> Model?
No i dont mean the selected messages.

User opens PST in Outlook, check the messages.. sorts them by sender
or date or subject or attachment then close the PST.
Now when my application reads same PST then i would love to preserve
its view state..i.e. order in which the user customized last time?

Is this possible?

miztaken
date: Fri, 22 Aug 2008 13:46:53 -0700   author:   Dmitry Streblechenko

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us