Google Groups unterstützt keine neuen Usenet-Beiträge oder ‑Abos mehr. Bisherige Inhalte sind weiterhin sichtbar.

Changes by an RDO-Item only applies after Outlook restart

1 Aufruf
Direkt zur ersten ungelesenen Nachricht

Peter Marchert

ungelesen,
27.03.2007, 14:53:2727.03.07
an
Hello,

with this code

With objItem

strSubject = Trim(.Subject)
strEntryID = .EntryID
strStoreID = .Parent.StoreID

End With

Set objRDOItem = m_objRDOSession.GetMessageFromID(strEntryID,
strStoreID)

With objRDOItem
.ConversationTopic = strSubject
.Save
End With

I change the conversationtopic of an file (not an email) in an email
folder (in the example it is a pdf file).

This works fine and the changes are displayed in the Outlook explorer
but they didn`t apply imeaditly to the file. So the code will change
the file each time he runs. After a restart of Outlook the changes are
ok.

I think something is wrong with my code or this informations are
cached anywhere?

PS: objItem and objRDOItem are declared as Object

Thanks for any help and suggestions!

Peter

--
Infos, workshops & soft-
ware for your Outlook®:
www.outlook-stuff.com

Dmitry Streblechenko

ungelesen,
27.03.2007, 16:56:1027.03.07
an
I am not sure I understand what you mean by

"I change the conversationtopic of an file (not an email) in an email folder
(in the example it is a pdf file)."
Your code is changing the conversation topic of a regular message, not a
message created on top of an MSG file.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Peter Marchert" <mpn...@arcor.de> wrote in message
news:1175021607.6...@y80g2000hsf.googlegroups.com...

Peter Marchert

ungelesen,
28.03.2007, 00:49:1628.03.07
an
Thanks Dmitry for your answer,

It`s a file I have dragged and dropped from the windows explorer to an
email folder (I don`t know what you mean with "on top of an MSG file",
sorry).

Peter

--
Infos, workshops & soft-
ware for your Outlook®:
www.outlook-stuff.com


On 27 Mrz., 22:56, "Dmitry Streblechenko" <dmi...@dimastr.com> wrote:
> I am not sure I understand what you mean by
> "I change the conversationtopic of an file (not an email) in an email folder
> (in the example it is a pdf file)."
> Your code is changing the conversation topic of a regular message, not a
> message created on top of an MSG file.
>

> Dmitry Streblechenko (MVP)http://www.dimastr.com/


> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
>

> "Peter Marchert" <mpne...@arcor.de> wrote in message

Peter Marchert

ungelesen,
30.03.2007, 10:17:0030.03.07
an
Hello again,

here I have a similar example with the same problem:

Public Sub Test()

Dim objNameSpace As Object
Dim objRDOSession As Object
Dim objRDOItem As Object
Dim strEntryID As String
Dim strStoreID As String

Set objRDOSession = CreateObject("Redemption.RDOSession")
Set objNameSpace = Nothing
Set objNameSpace = Outlook.GetNamespace("MAPI")
objNameSpace.Logon
objRDOSession.MAPIOBJECT = objNameSpace.MAPIOBJECT

With Outlook.ActiveExplorer.Selection(1)


strEntryID = .EntryID
strStoreID = .Parent.StoreID
End With

Set objRDOItem = objRDOSession.GetMessageFromID(strEntryID,
strStoreID)
objRDOItem.Subject = "Test"
objRDOItem.Save

End Sub

If I want to change the subject (or something else) after the code
made changes to the item, the following message appears: "The item
could not be saved because it has been changed by another user or in
another window"

I think this have to do with the RDO-Session and tried also
"objRDOSession.Logon "", "", False, False, 0" instead of
"objRDOSession.MAPIOBJECT = objNameSpace.MAPIOBJECT" but there is no
different. I´m using version 4.3.0.585.

Any suggestions are welcome!

Peter

> > ware for your Outlook®:www.outlook-stuff.com- Zitierten Text ausblenden -
>
> - Zitierten Text anzeigen -


Dmitry Streblechenko

ungelesen,
30.03.2007, 13:30:2230.03.07
an
This is an expected error - the message is opened by Outlook, then you
reopen it from Redemption and save it. When Outlook tries to save it, the
store reports that there was a conflict.
Why can't you use OOM to set the subject? Subject property does not cause
security prompts.

Dmitry Streblechenko (MVP)


http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Peter Marchert" <mpn...@arcor.de> wrote in message
news:1175264220.4...@p15g2000hsd.googlegroups.com...

Peter Marchert

ungelesen,
30.03.2007, 13:34:5830.03.07
an
Thanks for your answer, Dmitry.

The change of the subject was only a example. I posted a simple code
example to be sure that this behaivour is normal and have nothing to
do with the code.

I need the redemption to set the filename of the attachment of a
message (and/or documentitem, not a file :-)).

Peter

On 30 Mrz., 19:30, "Dmitry Streblechenko" <dmi...@dimastr.com> wrote:
> This is an expected error - the message is opened by Outlook, then you
> reopen it from Redemption and save it. When Outlook tries to save it, the
> store reports that there was a conflict.
> Why can't you use OOM to set the subject? Subject property does not cause
> security prompts.
>

> > > ware for your Outlook®:www.outlook-stuff.com-Zitierten Text
> > > ausblenden -
>
> > - Zitierten Text anzeigen -- Zitierten Text ausblenden -

Dmitry Streblechenko

ungelesen,
30.03.2007, 16:34:1730.03.07
an
Yes, if the message is also open in Outlook and modified, you will get a
conflict error.

Dmitry Streblechenko (MVP)


http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Peter Marchert" <mpn...@arcor.de> wrote in message
news:1175276098.1...@p15g2000hsd.googlegroups.com...

0 neue Nachrichten