HTML JPG PDF XML ICS
Aspose.Email  for .NET
ICS

ICS Viewer for .NET Applications

View ICS files programmatically in C# without Microsoft Outlook or Thunderbird dependencies.

 

How to View EML Files Using an Advanced Email API

ICS files are a standard format for calendar data, commonly used to share meeting invitations and event details. With Aspose.Email for .NET , you can effortlessly incorporate ICS file viewing capabilities into your .NET applications without relying on third-party software or online services. This robust email processing library enables developers to load ICS files, convert them into HTML format, and display them in web browsers or custom interfaces.

Whether you need to view event details, extract metadata, or manage attachments, the API offers a developer-friendly and efficient solution for handling ICS files.

Key Features:

  • Render ICS files as HTML for browser-based viewing or embedding in applications.

  • Compatibility with .NET Framework, .NET Core, and .NET Standard.

  • Independence from Microsoft Outlook or other calendar tools to view ICS files.

  • Extract and display event information, such as time, location, and attendees.

API Installation and Use to Work with ICS Files

To begin, install the API in your development environment:

  • Open NuGet package manager, search for Aspose.Email and click Install.

  • You may also use the following command in the Package Manager Console.

Command


PM> Install-Package Aspose.Email

Once installed, you can start coding.

Steps to View ICS via C#

Aspose.Email makes it easy for developers to view ICS files with just a few lines of code.

  1. Load the ICS file using Appointment.Load method.
  2. Create an EML instance with a new MailMessage object.
  3. Use RequestApointment() method to get the appointment and add it as an alternate view to the EML message.
  4. Save the EML as an HTML file using the Save method and pass the HtmlSaveOptions to specify additional options such as rendering the calendar event.

System Requirements

The library is supported on all major operating systems. Just make sure that you have the following prerequisites.

  • Microsoft Windows or a compatible OS with .NET Framework, .NET Core, and Xamarin Platforms
  • Development environment like Microsoft Visual Studio
  • Aspose.Email for .NET referenced in your project
 

C# code to view ICS

// load the ICS file to be converted
var ics = Aspose.Email.Calendar.Appointment.Load("My File.ics");
// create an EML
var eml = new MailMessage();
// add appointment to EML
eml.AlternateViews.Add(ics.RequestApointment());
// save EML as a HTML
eml.Save("Saved File.html", new HtmlSaveOptions { HtmlFormatOptions = HtmlFormatOptions.WriteHeader | HtmlFormatOptions.RenderCalendarEvent });
 

View ICS in a Browser

The code above transforms the ICS file into an HTML format, enabling easy viewing in any web browser, with detailed event information like date, time, location, and participants, as well as browser-compatible sharing.

  • API Short Presentation

    Aspose.Email for .NET is a comprehensive library for managing email messages and related tasks in .NET applications. Its features include:

    • Comprehensive Email Management: Handle email messages and related tasks effortlessly within .NET applications.
    • Email Operations: Create, send, receive, and convert emails in formats such as MSG, EML, EMLX, MHT, and HTML.
    • Advanced Features: Leverage parsing, attachment handling, contact management, calendar scheduling, and task organization.
    • Protocol Integration: Seamlessly integrate with SMTP, POP3, IMAP, Exchange Web Services (EWS), and Microsoft Graph API for streamlined email communication.
    • PST and OST Management: Create, edit, and extract data programmatically from PST and OST files for advanced email storage solutions.

    Try Aspose.Email for Free

    Explore the library with a free trial to evaluate its features. Visit the official download page to access the latest version and get started today.

    ICS Viewer Online

    Email File Viewer for Other Formats

    Aspose.Email for .NET extends its functionality beyond ICS files, supporting a variety of email formats. Developers can also use it to view the following:

    EML (Outlook Email Messages)
    EMLX (Apple Mail EMLX Format)
    MBOX (Collections of Electronic Mail Messages)
    MSG (Microsoft Outlook Email Format)
    OFT (Outlook Email Templates)
    OST (Offline Storage Files)
    PST (Outlook Personal Storage Files)
    VCF (Virtual Card Files for Contact Information)