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

VCF File Viewer for .NET

View VCF without needing Microsoft Outlook or Thunderbird installed.

How to View VCF File Using C#

In order to view VCF file, we’ll use

Aspose.Email for .NET

API which is a feature-rich, powerful and easy to use API for C# platform to be used with any Viewer. Open

NuGet

package manager, search for Aspose.Email and install. You may also use the following command from the Package Manager Console.

Package Manager Console Command


PM> Install-Package Aspose.Email

Steps to View VCF via C#

Aspose.Email makes it easy for the developers to view the VCF file with just few lines of code.

  1. Load VCF file using MapiContact.FromVCard
  2. Create MemoryStream Object
  3. Call MapiContact Save method and pass the MemoryStream object and ContactSaveFormat.Msg as parameters
  4. Load the MemoryStream using MapiMessage.Load
  5. Create MailConversionOptions object and pass it to msg.ToMailMessage as parameter
  6. Create HtmlSaveOptions object to prepare the relevant HTML options
  7. Call the MailMessage Save method with html file path and save options as parameters

System Requirements

Aspose.Email for .NET 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 VCF


MapiContact contact = MapiContact.FromVCard(MyDir + "input.vcf");

MemoryStream ms = new MemoryStream();
contact.Save(ms, ContactSaveFormat.Msg);
ms.Position = 0;
MapiMessage msg = MapiMessage.Load(ms);
MailConversionOptions op = new MailConversionOptions();
MailMessage eml = msg.ToMailMessage(op);

//Prepare the HTML format options
HtmlSaveOptions htmlSaveOptions = new HtmlSaveOptions();
            
eml.Save(MyDir + "output.html", htmlSaveOptions);
 
  • About Aspose.Email for .NET API

    Aspose.Email is a Microsoft Outlook and Thunderbird formats parsing solution. One can easily create, manipulate, convert email and storage formats such as MSG, EMLX, EML and MHT. Handling of email attachments, customization of message headers and implementation of different network protocols like POP3, IMAP & SMTP to send & receive emails is much easier. Its a standalone API and does not require Microsoft Outlook or any other software installation.

    Free App to View VCF

    VCF What is VCF File Format

    VCF (Virtual Card Format) or vCard is a digital file format for storing contact information. The format is widely used for data interchange among popular information exchange applications. Most operating systems such as Windows and MacOS come with default applications to create and open these files. A single VCF file can contain contact information for one or multiple contacts. A VCF file usually contains information such as contact's name, address, phone number, email, birthday, photographs and audio in addition to a number of other fields. Being supported by email clients and services, there is no loss of data during the transfer of contacts via using the vCard format. The media type for VCF file format is text/vcard.

    Read More

    Other Supported Viewer Formats

    Using C#, One can also view many other file formats including.

    EML (Outlook Email Messages)
    EMLX (Apple EMLX Format)
    ICS (iCalendar)
    MBOX (Electronic Mail Messages)
    MSG (Outlook & Exchange Format)
    OFT (Outlook Email Templates)
    OST (Offline Storage Files)
    PST (Outlook Personal Storage Files)