Csharp操作excel实例

Csharp操作excel实例


2024年6月20日发(作者:)

C sharp 操作excel实例

C#操作excel实例

用c#操作excel进行成绩统计:

用了俩控件:菜单和打开文件对话框。

三个菜单如下:

程序如下:

using System;

using c; using entModel; using

;

using g;

using ;

using ;

using ; using tion; using Excel;

using pServices;

using ;

namespace excel操作

{

public partial class excel操作 : Form

{

ation oXL;//定义变量

ok oWB;

eet oST;

dyg;

string path = null;

string[] xx = new string[8] { "南村1", "南村2", "

兴中", "东风", "尧场", "峪头", "普乐塬", "西沟" };

string[] kmb = new string[3] { "语文", "数学", "

英语" };

string[] nj = new string[6] { "一年级", "二年级",

"三年级", "四年级", "五年级", "六年级" };


发布者:admin,转转请注明出处:http://www.yc00.com/news/1718830510a2752921.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信