努力学习,努力工作,爱家,爱国

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2013年5月10日

摘要: OleDbConnection conExcel = new OleDbConnection(); try { OpenFileDialog openFile = new OpenFileDialog();//打开文件对话框。 openFile.Filter = ("Excel 文件(*.xls)|*.xls");//后缀名。 if (openFile.ShowDialog() == DialogResult.OK) { string filename = openFile.FileName; int index = filename.LastIndexOf("\ 阅读全文
posted @ 2013-05-10 18:39 CRH 阅读(150) 评论(0) 推荐(0) 编辑