Re: Copy appointment to public folder C# problem



I think with OLE attachments there is a property that gets set on the
attachment itself. If you use a Mapi editor like OutlookSpy of MFCmapi you
should be able to see the difference between the properties that get set on
particular appointments. Unfortunatly setting these type of properties is
only possible using Mapi.

Cheers
Glen
"za" <z.a.one@xxxxxxxxxxxxxxxxxxx> wrote in message
news:uHcBJ2RLJHA.1156@xxxxxxxxxxxxxxxxxxxxxxx
Hi Glenn,

It is working now thanx!
Only one question, if I copy the rtf property then embedded ole objects
are displayed as bitmap instead like for example a graph with excel, do
you maybe know there an solution for?

Reg. Fred

"Glen Scales [MVP]" <gscales@xxxxxxxxxxxxxxxxxxx> wrote in message
news:OjEWCGLLJHA.5596@xxxxxxxxxxxxxxxxxxxxxxx
How are you copying the properties ? I know I've used this before to copy
the RTF body of message and it worked okay eg

set msgobj = createobject("CDO.Message")
set msgobj1 = createobject("CDO.Message")
set stm = CreateObject("ADODB.Stream")
msgobj.datasource.open
"file://./backofficestorage/yourdomain.com/MBX/yourmailbox/inbox/email.eml",,3
set stm = msgobj.getstream()
msgobj1.datasource.openobject stm, "_Stream"
rtfbody =
msgobj.fields("http://schemas.microsoft.com/mapi/proptag/x10090102";)
msgobj1.fields("http://schemas.microsoft.com/mapi/proptag/x10090102";) =
rtfbody
msgobj1.fields("http://schemas.microsoft.com/exchange/outlookmessageclass";)
="IPM.NOTE"
msgobj1.fields.update
msgobj1.datasource.savetocontainer
"file://./backofficestorage/yourdomain.com/public folders/test/"

Cheers
Glen

"za" <z.a.one@xxxxxxxxxxxxxxxxxxx> wrote in message
news:%236SbAnuKJHA.456@xxxxxxxxxxxxxxxxxxxxxxx
Hi Glenn,

I've tried to copy the mapi properties and I they exists in the source
and the copy but when I save it to the store with SaveToContainer or
with DataSource.SaveToContainer then the properties (fields) are not
saved. If I open the saved copy then I can not see the properties
anymore. Is there another way to save the item to the store?

Reg. Fred

"Glen Scales [MVP]" <gscales@xxxxxxxxxxxxxxxxxxx> wrote in message
news:ePwAcABKJHA.4940@xxxxxxxxxxxxxxxxxxxxxxx
You can copy any Mapi properties on the appointment using Exoledb you
need to work out which properties you want to copy and do them each
individually. I dont think you can access properties on an attachment
with Exoledb but its rare that they are used usually only for things
like contact pictures etc.

Cheers
Glen



"za" <z.a.one@xxxxxxxxxxxxxxxxxxx> wrote in message
news:u17O9K5JJHA.3460@xxxxxxxxxxxxxxxxxxxxxxx
Thanks Glen,

Can I copy the mapi properties for each attachments to the new
appointment?

Reg. Fred

"Glen Scales [MVP]" <gscales@xxxxxxxxxxxxxxxxxxx> wrote in message
news:OYfZIP0JJHA.4936@xxxxxxxxxxxxxxxxxxxxxxx
One of the problems of using the method where your just copying the
stream of the message is that you will loose some fidelity on the
appointment itself because this method wont copy any associated mapi
properties. Using the stream should copy the attachments over okay
because they should just be a body parts in the stream itself
although you may find there where extra MAPI properties that have
been set on the attachments themselves they maybe getting lost. What
you might want to do is use a MAPI editor like Outlook Spy or MFC
mapi to look at the properties of the two appointments and see if you
can find what might be missing on the copy otherwise you might want
to look at using MAPI to copy the appointment (if your using 2007 you
can do this in EWS instead).

Cheers
Glen

"za" <z.a.one@xxxxxxxxxxxxxxxxxxx> wrote in message
news:esi%23nDgJJHA.1308@xxxxxxxxxxxxxxxxxxxxxxx
Hello,

I've made a eventsink for Exchange what works great, but I have a
problem with copying the appointment. I create a _record form the
url and then I create a _stream from the _record object and the
create the duplicate appointment. This is also working good but when
there is a attchment in the original appointment it is displayed in
the duplicated appointment as plain text and not like html. Someone
got an id what I'm missing?

Regards Fred















.



Relevant Pages

  • Re: Copy appointment to public folder C# problem
    ... I've tried to copy the mapi properties and I they exists in the source ... Can I copy the mapi properties for each attachments to the new ... appointment itself because this method wont copy any associated mapi ... Using the stream should copy the attachments over okay ...
    (microsoft.public.exchange.development)
  • Re: Copy appointment to public folder C# problem
    ... Can I copy the mapi properties for each attachments to the new ... appointment itself because this method wont copy any associated mapi ... Using the stream should copy the attachments over okay ...
    (microsoft.public.exchange.development)
  • Re: Copy appointment to public folder C# problem
    ... Can I copy the mapi properties for each attachments to the new ... appointment itself because this method wont copy any associated mapi ... Using the stream should copy the attachments over okay ...
    (microsoft.public.exchange.development)
  • Re: Copy appointment to public folder C# problem
    ... You can copy any Mapi properties on the appointment using Exoledb you need ... Can I copy the mapi properties for each attachments to the new ... Using the stream should copy the attachments over okay ...
    (microsoft.public.exchange.development)
  • Re: SendMail event in Outlook directly from MAPI
    ... How do you add attachments? ... MAPI or rOOM? ... OutlookSpy - Outlook, CDO ... mail in mail editor and the modified mail, I need to refresh the window ...
    (microsoft.public.win32.programmer.messaging)

Loading