Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Add-ins for Outlook (http://www.outlookbanter.com/add-ins-outlook/)
-   -   "first day of the week" appointment item (http://www.outlookbanter.com/add-ins-outlook/38785-first-day-week-appointment-item.html)

[email protected] January 24th 07 11:13 PM

"first day of the week" appointment item
 
Does anyone know where Outlook stores the "first day of the week" field
for calculating recurring appointments?

I can tell you based on testing (ask me if you want to verify the test
steps) that Outlook DOES store the "first day of the week" setting in
each appointment record. You can change this setting via
Tools-Options-Calendar Options, which usually defaults to "Sunday" as
the first day of the week (at least where I'm from). If you add a
recurring item, then change this setting, then add the exact recurring
item again, you'll notice that the new item uses the new setting for
calculations, while the old one continues to use the old setting (so it
must be saved somewhere in each record).

I used Outlook Spy to compare all of the fields of the before and after
items, COM and MAPI, but didn't find any differences other than the ID
and some of the date/time stamps. Nothing like I would expect to find,
like a "0" for Sunday, and a "1" for Monday, or something like that.

I have some code which duplicates Outlook's calculations, and without
access to this field I can't correctly duplicate it. They give access
to all of the other fields I need, in the RecurrancePattern COM object.
I didn't see that that object has a MAPIOBJECT interface though, so
I'm not sure if I can get access to "undocumented" fields like I can
with the MAPI appointment item itself.


Michael Bauer [MVP - Outlook] January 25th 07 06:33 AM

"first day of the week" appointment item
 


That value is stored in the registry, e.g. under:

HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\O utlook\Options\Calendar
in FirstDOW


--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Keep your Outlook categories organized!
http://www.shareit.com/product.html?...4&languageid=1
(German: http://www.VBOffice.net/product.html?pub=6)

Am 24 Jan 2007 15:13:40 -0800 schrieb :

Does anyone know where Outlook stores the "first day of the week" field
for calculating recurring appointments?

I can tell you based on testing (ask me if you want to verify the test
steps) that Outlook DOES store the "first day of the week" setting in
each appointment record. You can change this setting via
Tools-Options-Calendar Options, which usually defaults to "Sunday" as
the first day of the week (at least where I'm from). If you add a
recurring item, then change this setting, then add the exact recurring
item again, you'll notice that the new item uses the new setting for
calculations, while the old one continues to use the old setting (so it
must be saved somewhere in each record).

I used Outlook Spy to compare all of the fields of the before and after
items, COM and MAPI, but didn't find any differences other than the ID
and some of the date/time stamps. Nothing like I would expect to find,
like a "0" for Sunday, and a "1" for Monday, or something like that.

I have some code which duplicates Outlook's calculations, and without
access to this field I can't correctly duplicate it. They give access
to all of the other fields I need, in the RecurrancePattern COM object.
I didn't see that that object has a MAPIOBJECT interface though, so
I'm not sure if I can get access to "undocumented" fields like I can
with the MAPI appointment item itself.


[email protected] January 29th 07 10:46 PM

"first day of the week" appointment item
 
Thank you, that is good to know incase I can't find the real value I
need. I know the value must also be stored per record, which is the
value I really need in order to synchronize correctly. Since old
records don't update when I change the global value, that tells me
that the value is also stored per record, as well as the global
setting kept in the registry. It makes since they would also keep the
value with each record, so that the dates don't change from one PC to
another (for example, with shared PST files, or if I copy my PST file
to another location).

On Jan 24, 11:33 pm, "Michael Bauer [MVP - Outlook]"
wrote:
That value is stored in the registry, e.g. under:

HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\O utlook\Options\Calendar
in FirstDOW

Am 24 Jan 2007 15:13:40 -0800 schrieb :


Does anyone know where Outlook stores the "first day of the week" field
for calculating recurring appointments?


I can tell you based on testing (ask me if you want to verify the test
steps) that Outlook DOES store the "first day of the week" setting in
each appointment record. You can change this setting via
Tools-Options-Calendar Options, which usually defaults to "Sunday" as
the first day of the week (at least where I'm from). If you add a
recurring item, then change this setting, then add the exact recurring
item again, you'll notice that the new item uses the new setting for
calculations, while the old one continues to use the old setting (so it
must be saved somewhere in each record).




All times are GMT +1. The time now is 04:14 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com