Re: Adding rich text in CDOEX Appointment body
From: Jude Wong (JudeWong_at_discussions.microsoft.com)
Date: 02/05/05
- Previous message: Ben: "Inserting Items into Exchange 2k3 as a linked server in SQL Server 2003"
- In reply to: Glen Scales [MVP]: "Re: Adding rich text in CDOEX Appointment body"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 5 Feb 2005 07:03:04 -0800
Hi Glen,
Yes, that worked! Thanks a lot.
Best regards,
Jude
"Glen Scales [MVP]" wrote:
> One way that should work is to use the fields collection to set
> urn:schemas:httpmail:htmldescription eg
>
> set objappt = createobject("CDO.Appointment")
> objappt.starttime = now()
> objappt.endtime = now()+1
> objappt.subject = "test appointment"
> objappt.fields("urn:schemas:httpmail:htmldescription") = "<html><Body><a
> href='http://www.news.com'>news</a></body></html>"
> objappt.fields.update
> objappt.datasource.savetocontainer
> "http://server/exchange/mailbox/calendar/"
>
> Cheers
> Glen
>
>
> "Jude Wong" <JudeWong@discussions.microsoft.com> wrote in message
> news:8963CBC0-AE2A-478A-A4BD-8B321AF60A92@microsoft.com...
> > Hi,
> >
> > Is there a way to add rich text to the CDOEX Appointment item
> > programmatically? In the Message class, there is the HTMLBody.
> >
> > I tried to AddBodyPart to Appointment.BodyPart, and write HTML to the
> > Stream
> > returned from GetDecodedContentStream. Everything looks fine in the
> > running
> > code the BodyPart could not be saved to the store. There was no error
> > message.
> >
> > I flushed the stream after updating and then save the appointment item to
> > the store using SaveToContainer. The item was created in the store but
> > without the HMTL BodyPart.
> >
> > What is the correct way to add a rich text body part to an appointment
> > item?
> > What about adding an attachment?
> >
> > Thanks.
> >
> >
> > --
> > Best regards,
> >
> > Jude
>
>
>
- Previous message: Ben: "Inserting Items into Exchange 2k3 as a linked server in SQL Server 2003"
- In reply to: Glen Scales [MVP]: "Re: Adding rich text in CDOEX Appointment body"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|