![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi
I have a addin dll that I have built using VB6 ontop of outlook 2000 Basically the adding add a tool bar that looks up a field from a data base and sets it as a user property on the mail item. As part the setting of the userproperties I call Save. code snip ------------------------------------------------------------------------------------------------------ Set UserProp = objMailItem.UserProperties.Find("PrincipalFilerUse rId") If UserProp Is Nothing Then Set UserProp = objMailItem.UserProperties.Add("PrincipalFilerUser Id", olText) End If UserProp.Value = project.PrincipalFilerUserId If objMailItem.Sent Then objMailItem.Save End If ----------------------------------------------------------------------------------------------------------------------- I am having problems though if my user is a blackberry users as it would seem that when a black berry sync (reconcile???) it also changes something under the hold and saves the mailitem. So if the user has the Item open while the blackberry process do it thing .. I cannot save as the item has changed. So my question is there a work around to force saving or a smart way to re-get the reference ? ( I've tried to GetItemFromID) I guess I need to know more about what blackberry is doing but this may not be the place for that. Thanks in advance m |
Ads |
#2
|
|||
|
|||
![]()
Ok,
Have been trying to work this one a bit more, Now I detect that the save didn't work (because the item has changed la la) So I try to reget the reference via the Entry Id and GetItemFromID the idea being that this would be a item that can be saved reapply my changes and attempt to save again but this seem not to work as well! If I compare (doing and IS ) the objects they are different so I am assuming that I have pickup the new one or haven't I ? is there a cache in exchange that give you the same item ? is so how do I release the first object completely ? I have tryed close etc. any insight would be greatful ! Marcus |
#3
|
|||
|
|||
![]()
Do the items have the same EntryID as before the Blackberry did whatever it
did? If so set all your references to that item to null (Nothing) and that should release all your references to it after closing it. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm wrote in message ps.com... Ok, Have been trying to work this one a bit more, Now I detect that the save didn't work (because the item has changed la la) So I try to reget the reference via the Entry Id and GetItemFromID the idea being that this would be a item that can be saved reapply my changes and attempt to save again but this seem not to work as well! If I compare (doing and IS ) the objects they are different so I am assuming that I have pickup the new one or haven't I ? is there a cache in exchange that give you the same item ? is so how do I release the first object completely ? I have tryed close etc. any insight would be greatful ! Marcus |
#4
|
|||
|
|||
![]()
Ken
Yes this is what I am have been trying to do, am doing a objMailItem.Close (olDiscard) Set objMailItem = Nothing Then re-getting Set objNewMailItem = g_olApp.GetNamespace("Mapi").GetItemFromID(stEntry Id) and then trying to re apply my userproperties and trying to save again ... It still fails ... with the same error ? Marcus |
#5
|
|||
|
|||
![]()
Then something else is holding that item open or you have a reference you're
not releasing. If the Blackberry software is holding the item open there's not much you can do about it. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm wrote in message oups.com... Ken Yes this is what I am have been trying to do, am doing a objMailItem.Close (olDiscard) Set objMailItem = Nothing Then re-getting Set objNewMailItem = g_olApp.GetNamespace("Mapi").GetItemFromID(stEntry Id) and then trying to re apply my userproperties and trying to save again ... It still fails ... with the same error ? Marcus |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How can I enter calendar items without changing my availability? | Mainereader | Outlook - Calandaring | 2 | July 2nd 06 02:56 PM |
Changing tasks to appointments (calendar items) and/or vice versa | Craig | Outlook - Calandaring | 2 | March 24th 06 12:03 PM |
Changing background color in the Inbox in Outlook 2003 | Jen | Outlook - General Queries | 1 | March 23rd 06 08:20 AM |
Can't save changes to appontment items - help | Mike Knee | Outlook and VBA | 1 | February 1st 06 12:05 AM |
Changing background colors in Outlook Express - HELP! | will7370 | Outlook - General Queries | 2 | January 21st 06 07:23 PM |