using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.OleDb;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Web;
using System.Configuration;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
//SqlConnection cn = new SqlConnection();
//cn.ConnectionString = @"Server=.;DataBase=MyFirstDBApp;UID=123456;PWD=123";
//cn.Open ();
//Console.WriteLine(cn.State);
//Console.ReadLine();
string connectionString = "Provider=Microsoft.Jet.OleDb.4.0; data source=c:\\office.xls; Extended Properties=Excel 8.0;";
c# 写入数据到excel文件
最新推荐文章于 2024-03-11 21:22:10 发布