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

Save Prompt comes though nothing changed



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 28th 07, 02:12 PM posted to microsoft.public.outlook.program_addins
shubhangi
external usenet poster
 
Posts: 28
Default Save Prompt comes though nothing changed

hello
I've VSTO addin for OL2007.I've shown form region as separate page for
contact form.
On that region I've placed AX ctl consisting of 2 comboboxes.When user
changes
combobox contents I invoke below Proc in AX ctl

Public Sub AddModifyUserProp(ByVal PropName As String, ByVal PropValue As
String)
Dim ObjContactItem As Outlook.ContactItem
Set ObjContactItem = ActiveInspector.CurrentItem
If Not ObjContactItem Is Nothing Then
Dim userProperty As Outlook.userProperty
Set userProperty = ObjContactItem.UserProperties.Find(PropName,
True)
If userProperty Is Nothing Then
Set userProperty = ObjContactItem.UserProperties.Add(PropName,
olText, True)
End If
If Not userProperty Is Nothing Then
userProperty.Value = PropValue
Set userProperty = Nothing
End If
Set ObjContactItem = Nothing
End If
End Sub

When User changes something in any of combo on form region ,Outlook prompts
for save,
If user clicks No,Item gets closed.But when same contact is opened ,without
changing
anything closed,Outlook again prompts for change(though nothing changed).
I've released alll objects.What might be the reason,is it related to form
region or
something else?

Thanks in Advance


Ads
  #2  
Old December 28th 07, 02:46 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Save Prompt comes though nothing changed

Obviously something is changing. I'd be inclined to suspect filling the
combo's is the culprit but that you'd have to verify by stepping your code
and seeing when the item.Saved property becomes False.

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


"shubhangi" wrote in message
...
hello
I've VSTO addin for OL2007.I've shown form region as separate page for
contact form.
On that region I've placed AX ctl consisting of 2 comboboxes.When user
changes
combobox contents I invoke below Proc in AX ctl

Public Sub AddModifyUserProp(ByVal PropName As String, ByVal PropValue As
String)
Dim ObjContactItem As Outlook.ContactItem
Set ObjContactItem = ActiveInspector.CurrentItem
If Not ObjContactItem Is Nothing Then
Dim userProperty As Outlook.userProperty
Set userProperty = ObjContactItem.UserProperties.Find(PropName,
True)
If userProperty Is Nothing Then
Set userProperty = ObjContactItem.UserProperties.Add(PropName,
olText, True)
End If
If Not userProperty Is Nothing Then
userProperty.Value = PropValue
Set userProperty = Nothing
End If
Set ObjContactItem = Nothing
End If
End Sub

When User changes something in any of combo on form region ,Outlook
prompts for save,
If user clicks No,Item gets closed.But when same contact is opened
,without changing
anything closed,Outlook again prompts for change(though nothing changed).
I've released alll objects.What might be the reason,is it related to form
region or
something else?

Thanks in Advance



 




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
Calendar format changed and can't save it annasue Outlook - Calandaring 3 November 27th 07 08:55 PM
Missing The Prompt To Open OR Save An Attachment In Outlook 2003 [email protected] Outlook - General Queries 1 August 29th 07 12:38 AM
Mistakenly did not SAVE changed info in Outlook Contacts. Want inf cawarchitect Outlook - Using Contacts 3 March 24th 07 03:39 PM
TURNED ON MY COMPUTER AND FONT SIZE SETTINGS CHANGED TO TINY/EXCELL CHANGED TOO [email protected] Outlook - General Queries 0 October 29th 06 09:50 PM
Prompt to Save appointment Rich W. Outlook - Calandaring 3 July 3rd 06 11:47 AM


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