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

Get AutoArchive settings (as set from Tools|Options|Other|AutoArch



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 3rd 10, 05:37 AM posted to microsoft.public.outlook.program_addins
ron podl
external usenet poster
 
Posts: 4
Default Get AutoArchive settings (as set from Tools|Options|Other|AutoArch

Is there a way to get the default AutoArchive settings using the Outlook
(2007) object model using VB (VS2008)?

I want to programmatically determine where each outlook folder and
subfolders are being autoarchived to.
With the following:
Dim si As StorageItem = oFolder.GetStorage("IPC.MS.Outlook.AgingProperties ",
2) 'olIdentifyByMessageClass)
Dim PA As PropertyAccessor = si.PropertyAccessor
and with this and some other properties and logic
Const PR_AGING_FILE_NAME_AFTER9 = _
"http://schemas.microsoft.com/mapi/proptag/0x6859001E"
dim fname as string = PA.GetProperty(PR_AGING_FILE_NAME_AFTER9)
I can tell if a specific folder is being archived to the default AutoArchive
pst file as set in the Tools|Options|Other|AutoArchive dialog or to a
different pst file for that folder.

But I don't see how to get the filename (or other settings) set in the
Tools|Options|Other|AutoArchive dialog. Is it possible?

thanks
ron
Ads
  #2  
Old March 3rd 10, 04:48 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Get AutoArchive settings (as set from Tools|Options|Other|AutoArch

Some of the settings are stored in the registry under the
HKCU\Software\Microsoft\Office\12.0\Preferences key (12.0 is Outlook 2007
specific). Other settings are stored on an Outlook profile specific basis,
also in the registry. Look at http://support.microsoft.com/kb/198479.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"ron podl" wrote in message
...
Is there a way to get the default AutoArchive settings using the Outlook
(2007) object model using VB (VS2008)?

I want to programmatically determine where each outlook folder and
subfolders are being autoarchived to.
With the following:
Dim si As StorageItem =
oFolder.GetStorage("IPC.MS.Outlook.AgingProperties ",
2) 'olIdentifyByMessageClass)
Dim PA As PropertyAccessor = si.PropertyAccessor
and with this and some other properties and logic
Const PR_AGING_FILE_NAME_AFTER9 = _
"http://schemas.microsoft.com/mapi/proptag/0x6859001E"
dim fname as string = PA.GetProperty(PR_AGING_FILE_NAME_AFTER9)
I can tell if a specific folder is being archived to the default
AutoArchive
pst file as set in the Tools|Options|Other|AutoArchive dialog or to a
different pst file for that folder.

But I don't see how to get the filename (or other settings) set in the
Tools|Options|Other|AutoArchive dialog. Is it possible?

thanks
ron


 




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
Outlook 2007 (Trial) Tools-Options and ToolsCustomize disabled NEO007 Outlook - General Queries 3 February 27th 08 10:29 PM
AutoArchive settings Ken W Outlook - Installation 1 November 27th 07 04:02 PM
No delegates tab in tools - options. BrianLaP Outlook - Installation 0 October 7th 06 03:53 PM
Reminders don't appear despite but set up under ToolsOptionsetc IC Outlook - Calandaring 1 April 20th 06 04:10 AM
Outlook 2003 | Tools | Options | Calendar options Sue Mosher [MVP-Outlook] Outlook - General Queries 0 January 18th 06 10:59 PM


All times are GMT +1. The time now is 01:01 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.