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

Blackberry changing items in the background ... making save fail



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 21st 07, 06:58 PM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 5
Default Blackberry changing items in the background ... making save fail

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  
Old February 27th 07, 11:57 AM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 5
Default Blackberry changing items in the background ... making save fail

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  
Old February 27th 07, 03:22 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Blackberry changing items in the background ... making save fail

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  
Old February 28th 07, 06:57 PM posted to microsoft.public.outlook.program_addins
[email protected]
external usenet poster
 
Posts: 5
Default Blackberry changing items in the background ... making save fail

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  
Old February 28th 07, 07:41 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Blackberry changing items in the background ... making save fail

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


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