C# 操作Excel写数据生成图表

上传者: yuanxiaoying | 上传时间: 2022-06-06 21:13:45 | 文件大小: 726KB | 文件类型: RAR
C#的,winform的,这是我自己写的一个c#操作excel的例子,其中包括数据操作,字体,格式,单元格等操作,还有一个生成柱状图的方法,所有的方法都在ExcelHelper.cs类里,点击Form1窗体里的按钮可以看到各种操作的例子,生成的excel在bin/debug里 这个是用vs2008和excel2007开发的,我刚刚换了excel2003试了下,导出图表时会报个错,但是可以看到图表,如果是excel2007就不会有问题,下载的朋友请注意下

文件下载

资源详情

[{"title":"( 33 个子文件 726KB ) C# 操作Excel写数据生成图表","children":[{"title":"excel","children":[{"title":"excel","children":[{"title":"ExcelHelper.cs <span style='color:#111;'> 111.84KB </span>","children":null,"spread":false},{"title":"Form1.cs <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"Interop.Excel.dll <span style='color:#111;'> 1.04MB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"office.dll <span style='color:#111;'> 218.55KB </span>","children":null,"spread":false},{"title":"Interop.Excel.dll <span style='color:#111;'> 1.04MB </span>","children":null,"spread":false},{"title":"excel.pdb <span style='color:#111;'> 99.50KB </span>","children":null,"spread":false},{"title":"Microsoft.Vbe.Interop.dll <span style='color:#111;'> 62.59KB </span>","children":null,"spread":false},{"title":"excel.vshost.exe <span style='color:#111;'> 13.99KB </span>","children":null,"spread":false},{"title":"excel.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"TEST.xls <span style='color:#111;'> 16.75KB </span>","children":null,"spread":false},{"title":"model.xls <span style='color:#111;'> 15.23KB </span>","children":null,"spread":false},{"title":"excel.exe <span style='color:#111;'> 53.00KB </span>","children":null,"spread":false},{"title":"Microsoft.Office.Interop.Excel.dll <span style='color:#111;'> 1.05MB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"obj","children":[{"title":"Debug","children":[{"title":"excel.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"excel.exe.licenses <span style='color:#111;'> 269B </span>","children":null,"spread":false},{"title":"excel.pdb <span style='color:#111;'> 99.50KB </span>","children":null,"spread":false},{"title":"excel.csproj.GenerateResource.Cache <span style='color:#111;'> 847B </span>","children":null,"spread":false},{"title":"Refactor","children":null,"spread":false},{"title":"excel.Form1.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"excel.csproj.FileListAbsolute.txt <span style='color:#111;'> 691B </span>","children":null,"spread":false},{"title":"excel.exe <span style='color:#111;'> 53.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Properties","children":[{"title":"Resources.Designer.cs <span style='color:#111;'> 2.79KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"licenses.licx <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false}],"spread":true},{"title":"Program.cs <span style='color:#111;'> 486B </span>","children":null,"spread":false},{"title":"Form1.Designer.cs <span style='color:#111;'> 9.29KB </span>","children":null,"spread":false},{"title":"Form1.resx <span style='color:#111;'> 5.68KB </span>","children":null,"spread":false},{"title":"OWCChart11.cs <span style='color:#111;'> 37.29KB </span>","children":null,"spread":false},{"title":"excel.csproj <span style='color:#111;'> 4.95KB </span>","children":null,"spread":false}],"spread":true},{"title":"excel.suo <span style='color:#111;'> 149.50KB </span>","children":null,"spread":false},{"title":"excel.sln <span style='color:#111;'> 905B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明