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

Strange save request when closing Outlook 2007



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 9th 09, 01:12 PM posted to microsoft.public.developer.outlook.addins,microsoft.public.outlook.program_addins,microsoft.public.outlook.program_vba,microsoft.public.platformsdk.mapi
escamoteur
external usenet poster
 
Posts: 147
Default Strange save request when closing Outlook 2007

Hi,

when changing one specific custom prop on a Custom Form Region inspector and then closing the inspector without saving, I get twice
a dialog asking if I want to save changes when closing Outlook but there is no inspector open at this time.

Any idea??

Best
Tom

Ads
  #2  
Old September 9th 09, 02:20 PM posted to microsoft.public.developer.outlook.addins,microsoft.public.outlook.program_addins,microsoft.public.outlook.program_vba,microsoft.public.platformsdk.mapi
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Strange save request when closing Outlook 2007

Save the item before closing the Inspector, that should solve the problem.

That can happen if there's any code in event handlers such as Inspector or
item.Close() or Write() or a number of other functions. Just because you
don't see the Inspector still it was open and is now closing and is firing
those prompts.

--
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


"escamoteur" wrote in message
...
Hi,

when changing one specific custom prop on a Custom Form Region inspector
and then closing the inspector without saving, I get twice a dialog asking
if I want to save changes when closing Outlook but there is no inspector
open at this time.

Any idea??

Best
Tom


  #3  
Old September 9th 09, 02:27 PM posted to microsoft.public.developer.outlook.addins,microsoft.public.outlook.program_addins,microsoft.public.outlook.program_vba,microsoft.public.platformsdk.mapi
escamoteur
external usenet poster
 
Posts: 147
Default Strange save request when closing Outlook 2007

Hmmm, but I if the user decides not to save his changes this should be possible. Also it only happens when I change a specific
field.

Even If I wait quite a time before closing outlook after closing the inspector I don't get this requests, only on closing Outlook.
Normaly I should get the request when I close the inspector.

Is there any way to get all changed and not saved items listed?

Best
Tom

"Ken Slovak - [MVP - Outlook]" schrieb im Newsbeitrag ...
Save the item before closing the Inspector, that should solve the problem.

That can happen if there's any code in event handlers such as Inspector or item.Close() or Write() or a number of other functions.
Just because you don't see the Inspector still it was open and is now closing and is firing those prompts.

--
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


"escamoteur" wrote in message ...
Hi,

when changing one specific custom prop on a Custom Form Region inspector and then closing the inspector without saving, I get
twice a dialog asking if I want to save changes when closing Outlook but there is no inspector open at this time.

Any idea??

Best
Tom



  #4  
Old September 9th 09, 02:40 PM posted to microsoft.public.developer.outlook.addins,microsoft.public.outlook.program_addins,microsoft.public.outlook.program_vba,microsoft.public.platformsdk.mapi
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Strange save request when closing Outlook 2007

That is due to a flag that's probably set about your item and it wasn't
fully released by Outlook. I've seen that sort of thing sometimes,
especially if there's code in a custom form as well as in an addin and both
are working on the same item.

In Outlook 2007 there's an Unload() event that fires when Outlook finally
unloads an item from its internal cache, that event can fire long after the
item was closed. I think that's related also to what you're seeing.

You really only have a few choices. You definitely should go over your code
to see what if anything your code changes and which of the events such as
Close() and Write() you're handling. You can also make use of saving an item
and closing it with olDiscard as an argument.

What I usually do, and it works in the majority of cases but not 100% is to
hold a flag for when I save an item using code and I work with that in any
Write() event handler. If I called Write() I take certain steps and if the
user forced Write() I take different steps. I can check the flag and also
the Saved property of the item when it's being closed and decide on actions
to take such as saving or using olDiscard, and if necessary and the item was
saved but I want to discard it I can get EntryID and find it in Drafts and
delete it.

--
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


"escamoteur" wrote in message
news
Hmmm, but I if the user decides not to save his changes this should be
possible. Also it only happens when I change a specific field.

Even If I wait quite a time before closing outlook after closing the
inspector I don't get this requests, only on closing Outlook. Normaly I
should get the request when I close the inspector.

Is there any way to get all changed and not saved items listed?

Best
Tom


  #5  
Old September 9th 09, 09:50 PM posted to microsoft.public.developer.outlook.addins,microsoft.public.outlook.program_addins,microsoft.public.outlook.program_vba,microsoft.public.platformsdk.mapi
escamoteur
external usenet poster
 
Posts: 147
Default Strange save request when closing Outlook 2007

I tried everything you mentioned. I even removed any of mine registered events but still the same happened. Finally I now found a no
longer used and unbound custom property field on my form region.

Many thanks
Tom


"Ken Slovak - [MVP - Outlook]" schrieb im Newsbeitrag ...
That is due to a flag that's probably set about your item and it wasn't fully released by Outlook. I've seen that sort of thing
sometimes, especially if there's code in a custom form as well as in an addin and both are working on the same item.

In Outlook 2007 there's an Unload() event that fires when Outlook finally unloads an item from its internal cache, that event can
fire long after the item was closed. I think that's related also to what you're seeing.

You really only have a few choices. You definitely should go over your code to see what if anything your code changes and which of
the events such as Close() and Write() you're handling. You can also make use of saving an item and closing it with olDiscard as
an argument.

What I usually do, and it works in the majority of cases but not 100% is to hold a flag for when I save an item using code and I
work with that in any Write() event handler. If I called Write() I take certain steps and if the user forced Write() I take
different steps. I can check the flag and also the Saved property of the item when it's being closed and decide on actions to take
such as saving or using olDiscard, and if necessary and the item was saved but I want to discard it I can get EntryID and find it
in Drafts and delete it.

--
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


"escamoteur" wrote in message news
Hmmm, but I if the user decides not to save his changes this should be possible. Also it only happens when I change a specific
field.

Even If I wait quite a time before closing outlook after closing the inspector I don't get this requests, only on closing
Outlook. Normaly I should get the request when I close the inspector.

Is there any way to get all changed and not saved items listed?

Best
Tom



 




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
Strange save request when closing Outlook 2007 escamoteur Outlook and VBA 4 September 9th 09 09:50 PM
Outlook 2007 can't save meeting request without sending out updates AXJ[_2_] Outlook - Calandaring 8 August 29th 08 12:19 AM
On Closing Outlook after Programmatically Sending Email, Word Promptsto Save John[_15_] Outlook and VBA 3 June 2nd 08 02:46 PM
Outlook 2007 not closing HJA Outlook - General Queries 15 April 21st 08 01:33 PM
outlook 2007 not closing [email protected] Outlook - General Queries 0 November 2nd 07 04:37 PM


All times are GMT +1. The time now is 09:09 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-2025 Outlook Banter.
The comments are property of their posters.