Re: Adding rich text in CDOEX Appointment body

From: Jude Wong (JudeWong_at_discussions.microsoft.com)
Date: 02/05/05

  • Next message: Jude Wong: "Duplicating the body of an CDOEX Appointment item"
    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
    >
    >
    >


  • Next message: Jude Wong: "Duplicating the body of an CDOEX Appointment item"

    Relevant Pages

    • RE: How to store the out put in StringBuffer
      ... Regards ... How to store the out put in StringBuffer ... E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. ...
      (perl.beginners)
    • RE: Storing Chinese data in Char/Varchar dat types
      ... You need to store that data in ncahr/nvarchar fields. ... Regards ... But when I try to insert same chinese data to ...
      (microsoft.public.sqlserver.server)
    • Re: info store stopped unexpectedly
      ... Regards ... >> Ben Hoffman ... see Help and Support Center at ... >>> The Microsoft Exchange Information Store service terminated ...
      (microsoft.public.exchange.admin)
    • Re: Getting web service dataset into xml
      ... How can I then store the local dataset into an access table locally? ... Regards ... >> I need to access to a web service method that returns a dataset type. ...
      (microsoft.public.dotnet.framework.aspnet.webservices)
    • Re:TAN Jude the poster(was: GL Clearly Edmund... (Spoiler)
      ... > SarahE ... spoke with a few NO residents who came into my store and they told me they ... employment to the evaucees--either temporary or permanent. ...
      (rec.arts.tv.soaps.cbs)