• Subject: Create temp Profile in code? Outlook 2007
  • Author: Gerry Hickman
  • Date: 24 Nov 2009
  • References:
Hi, I want to be able to create a temporary Profile, Logon to this profile, carry out some tasks, then Logoff and discard the profile, then use a different one. In CDO 1.2.1 this appears to be possible by using the ProfileInfo parameter of the Logon method of the Session object http://msdn.microsoft.com/en-us/library/ms526377(EXCHG.10).aspx "objSession.Logon( [profileName] [, profilePassword] [, showDialog] [, newSession] [, parentWindow] [, NoMail] [, ProfileInfo] )" but in the Outlook 2007 object model, the Logon method of the Namespace object looks like this http://msdn.microsoft.com/en-us/library/bb219914.aspx expression.Logon(Profile, Password, ShowDialog, NewSession) There's no ProfileInfo parameter. So why don't I just use CDO 1.2.1? Because I'm on Vista/2008/Win7 and it says on the Microsoft site that you can't install CDO (or the MAPI client library) on a machine that has Outlook 2007 installed.
Gerry Hickman (London UK)
24 Nov 2009Create temp Profile in code? Outlook 2007.Gerry Hickman
24 Nov 2009\ Re: Create temp Profile in code? Outlook 2007.Sue Mosher [MVP]
24 Nov 2009   \ Re: Create temp Profile in code? Outlook 2007.Gerry Hickman
25 Nov 2009      \ Re: Create temp Profile in code? Outlook 2007.Sue Mosher [MVP]
25 Nov 2009         \ Re: Create temp Profile in code? Outlook 2007.Gerry Hickman
25 Nov 2009            \ Re: Create temp Profile in code? Outlook 2007.Sue Mosher [MVP]
26 Nov 2009               \ Re: Create temp Profile in code? Outlook 2007.Gerry Hickman
26 Nov 2009                  \ Re: Create temp Profile in code? Outlook 2007.Sue Mosher [MVP]
27 Nov 2009                     \ Re: Create temp Profile in code? Outlook 2007.Gerry Hickman
29 Nov 2009                        \ Re: Create temp Profile in code? Outlook 2007.Ken Slovak - [MVP - O...
Contact Us
All times are in (US) Eastern Daylight Time (GMT -4:00)