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

Store.FilePath problem



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old June 2nd 08, 06:48 PM posted to microsoft.public.outlook.program_addins
af2604
external usenet poster
 
Posts: 14
Default Store.FilePath problem

Hi all.
I'm trying to develop an AddIn using Visual Syudio 2008 Visual Basic,
for Outlokk 2007.
I'm able to detect the "SelectionChange" event for the current explorer,
the program work fine, but the problem is that I have an IMAP account
and so 2 different PST files : OUTLOOK.PST and IMAP.PST

As soon as the program start it correctly detect that I'm working on the
OUTLOOK.PST default file.

But if I change selection and go in the "send folder" of Imap account
I'm able to see the corrent user name : but I'M NOT
ABLE TO DETECT THE CORRECT PST FILE.

What I use to do this is :
-----------------------------------------------------------------------
Public WithEvents CurExplorer As Outlook.Explorer

Private Sub CurExplorer_Activate() Handles _
CurExplorer.SelectionChange

Dim CurFldName As String
Dim CurFldPath As String
Dim CurUser As String
Dim CurEntryId As String
Dim CurStoreId As String
Dim i As Integer

CurUser = Me.Application.Session.CurrentUser.Address

CurFldName = CurExplorer.CurrentFolder.Name
CurFldPath = CurExplorer.CurrentFolder.Store.FilePath
CurEntryId = CurExplorer.CurrentFolder.EntryID
CurStoreId = CurExplorer.CurrentFolder.StoreID

pippo = Me.Application.GetNamespace("MAPI"). _
GetFolderFromID(CurEntryId, CurStoreId).Items


End Sub
------------------------------------------------------------------------
when I'm using OUTLOOK.PST file all is ok but when I select a IMAP
folder the CurStoreId is always empty

Any idea ?

Alberto
 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
reinstalled OL- cannot change store or get previous store up MikeR-Oz Outlook - General Queries 8 May 19th 08 02:19 PM
OE6 exporting messages problem: "default MAPI store could not be found" Lanny Wolfe Outlook Express 6 November 5th 07 08:16 AM
IE6 'Store Folder' ... Jim Hughes Outlook Express 4 November 8th 06 04:41 AM
"The specified default store could not be opened. Please make sure you can access your default store and try again." [email protected] Outlook - General Queries 2 February 17th 06 04:58 PM
Problem Getting OE to Recognize Location of Store Folder Bruce Kerievsky Outlook Express 5 February 12th 06 01:39 AM


All times are GMT +1. The time now is 09:53 PM.


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.