Free Support Forum - aspose.com

Ics with html description


#1

I am evaluating your library and I would like to

  1. Open an ics file via Aspose.
  2. Update the description with an html description. The html description is supplied externally.
  3. Save the ics file.

The code I am using is the following

    [Test]
    public void AposeIcsUpdateWithHTMLDescription()
    {
        var appointment = Appointment.Load($@"{AppDomain.CurrentDomain.SetupInformation.ApplicationBase}\New Meeting with a simple text body.ics");
        appointment.Description = System.IO.File.ReadAllText($@"{ AppDomain.CurrentDomain.SetupInformation.ApplicationBase}\bodywithinlineimage.htm");
        appointment.IsDescriptionHtml = true;
        appointment.Save($@"{AppDomain.CurrentDomain.SetupInformation.ApplicationBase}\New Meeting with an html body.ics", Aspose.Email.Calendar.AppointmentSaveFormat.Ics);
    }

IcsHtmlTest.zip (7.4 KB)

The rendered html is not correct

image.png (32.0 KB)


#2

Same kind of applies when mapiCalendar is used

        var mapiCalendar = new MapiCalendar("location", "summary", "description", DateTime.UtcNow, DateTime.UtcNow);
        mapiCalendar.SetBodyContent(System.IO.File.ReadAllText($@"{ AppDomain.CurrentDomain.SetupInformation.ApplicationBase}\bodywithinlineimage.htm"), BodyContentType.Html);
        mapiCalendar.Save($@"{AppDomain.CurrentDomain.SetupInformation.ApplicationBase}\out.msg", Aspose.Email.Calendar.AppointmentSaveFormat.Ics);

#3

@BlitzKing,

I have worked with the issue shared by you and an issue with ID EMAILNET-39286 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.


#4

The issues you have found earlier (filed as EMAILNET-39286) have been fixed in this update.