Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8832605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:34:20+00:00 2026-06-14T08:34:20+00:00

we have created a vcs file using the following code. Dim mstream As New

  • 0

we have created a vcs file using the following code.

            Dim mstream As New MemoryStream
            Dim writer As New StreamWriter(mstream)
            writer.AutoFlush = True

            GetvCalendarText(writer)
            Response.Clear()
            Response.AppendHeader("Content-Disposition", "attachment; filename=Event" &              eventID & ".vcs")
            Response.AppendHeader("Content-Length", mstream.Length.ToString)
            Response.ContentType = "application/download"
            Response.BinaryWrite(mstream.ToArray)
            Response.End()
  • GetCalendarText method

        Dim body As String = <b>New event</b>
        writer.WriteLine("BEGIN:VCALENDAR{0}", vbCrLf)
        writer.WriteLine("VERSION:1.0{0}", vbCrLf)
        writer.WriteLine("BEGIN:VEVENT{0}", vbCrLf)
        writer.WriteLine("DTStart:{0}{1}", DateTime.Now.ToString("yyyyMMddTHHmm00Z"), vbCrLf)
        writer.WriteLine("DTEnd:{0}{1}", DateTime.Now.AddHours(2).ToString("yyyyMMddTHHmm00Z"), vbCrLf)
        writer.WriteLine("DESCRIPTION:{0}", body)
        writer.WriteLine("X-ALT-DESC;FMTTYPE=text/html:{0}", body)
        writer.WriteLine("SUMMARY;ENCODING=QUOTED-PRINTABLE:{0}{1}", Test event, vbCrLf)
        writer.WriteLine("PRIORITY:3{0}", vbCrLf)
        writer.WriteLine("END:VEVENT{0}", vbCrLf)
        writer.WriteLine("END:VCALENDAR{0}", vbCrLf)
    

It is generating the vcs file and upon opening the file it is opening in Outlook 2010 with subject , start time and end time with correct values.

The description we have given is in html format but it is shown as plain text.

So how we can show the html description as such.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T08:34:22+00:00Added an answer on June 14, 2026 at 8:34 am

    I tried to add html description in vCalendar format and can’t find any proper method to do this.

    Finally changed our vCalendar format to iCalendar and it allows to show html description.

    We removed the description line ie writer.WriteLine("DESCRIPTION:{0}", body)
    and now it showing html formatted description.

    Following parts also changed.

    Response.AppendHeader("Content-Disposition", "attachment; filename=Event" & eventID & ".ics")
    

    and

    writer.WriteLine("VERSION:2.0{0}", vbCrLf)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following in a layout file; <?php $Filename = TheEvent.vcs; header(Content-Type: application/force-download);
I have created 3 classes as following Ext.mine.TextParent - Inherting from Textfield Ext.mine.child.TextChildA -
I have created an android application that calls (using kSOAP library) a SOAP based
I have started a new project on Google code, and I chose Mercurial as
Have created a new property list, and deleted the original .plist (same filename). Deleted
have created REST service using servicestack and in post request I have return object
i have created one jsp file but it doesn't running in any way..!! it
I have following situation in my project: There will be 2 source code repositories
I have created a custom dialog for Visual Studio Setup Project using the steps
I just started using Git VCS and I created repository on BitBucket when I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.