• Subject: Where is the bug ?
  • Author: af2604
  • Date: 08 Jun
  • References:
I'm trying to develop an addin for OutLook 2007 using Visual Studio 2008
Visual Basic.

In my outlook 2007 I have 2 accounts:

my.name@pop3.mail this is using the OUTLOOK.PST file
my.name@imap.mail using : OUTLOOK.xxx.yyy.0000001.PST file

I'm trying this simple code :

ColStores = Me.Application.Session.Stores
Debug.Print("+---- start ----------------------------------------")
Debug.Print("| stores count =" + ColStores.Count.ToString)
Debug.Print("+---------------------------------------------------")
For i = 1 To ColStores.Count
FilePathName = ColStores(i).GetRootFolder.Store.FilePath
Debug.Print("| i =" + i.ToString + " " + FilePathName)
Next
Debug.Print("+---- end -------------------------------------------")

this is the output

+---- start ----------------------------------------
| stores count =2
+---------------------------------------------------
| i =1 C:\Documents and Settings\...\Microsoft\Outlook\Outlook.pst
| i =2
+---- end -------------------------------------------

FilePathName for i = 2 is set to <nothing>

the stores count : 2 is correct but why there is not the path and file
name of the PST file used by the IMAP account ?

Thanks a lot

Alberto
08 JunWhere is the bug ?.af2604
08 Jun\ Re: Where is the bug ?.Dmitry Streblechenko
09 Jun   \ Re: Where is the bug ?.af2604
09 Jun      \ Re: Where is the bug ?.Dmitry Streblechenko
09 Jun         \ Re: Where is the bug ?.af2604
All times are in (US) Eastern Daylight Time (GMT -4:00)