C#.Net Programme convert to Excel 2007

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rshin2020
    New Member
    • Dec 2009
    • 26

    C#.Net Programme convert to Excel 2007

    Hi. I need to write a simple programme in Visual Studio 2005 in a console application for :
    String - Voltage, EmployeeID
    Number - 1.016, 00180000 respectively...

    Here's only what i have done:
    using System;
    using System.Collecti ons.Generic;
    using System.Text;

    namespace ConsoleApplicat ion1
    {
    class Program
    {

    static void Main(string[] args)
    {
    double p = 1.016;
    int q = 00180000;

    Console.WriteLi ne("Voltage: {0}", p);
    Console.WriteLi ne("EmployeeID : {1}", q);
    }


    }
    }

    I seem to get an error but don't know where the error is. Could someone please help me to correct the code. I also need to convert the data to be displayed in Excel 2007. How do I do that. I'm really new to C#.net. Please help, thanks.
Working...