Click here to Skip to main content
15,897,187 members
Articles / Programming Languages / C#

Connect the Excel Database from C# .Net

Rate me:
Please Sign up or sign in to vote.
2.92/5 (9 votes)
21 Dec 2007CPOL 144K   1.4K   38  
It Explains how to make a connection to the Excel and how to get the data using C# .Net
using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace XLS_DB_Sample
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer Anadocs IT Solutions Pvt Ltd
India India
M.Senthil Rajan,
Software Engineer,
Anadocs IT Solutions,
Chennai.

Comments and Discussions