章术

导航

2010年6月6日

C#运用ADO.net动态创建excle并进行相应的数据修改显示

摘要: button1是动态创建excle,button2是添加数据,button3是现实数据using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using Sy... 阅读全文

posted @ 2010-06-06 15:41 章术 阅读(483) 评论(0) 推荐(0) 编辑

C#动态生成EXCLE并进行添加内容

摘要: Microsoft Excel是Microsoft Office的一个组件,是功能强大的电子表格处理软件,它与文本处理软件的差别在于它能够运算复杂的公式,并且有条理地显示结果。Microsoft Excel是除了Microsoft Word之外最常用的办公软件之一,本节将介绍如何使用C#创建Excel文档。与在C#中添加Word文档的方法类似,添加Excel文档时需要为项目添加对Microsoft... 阅读全文

posted @ 2010-06-06 12:16 章术 阅读(2444) 评论(3) 推荐(1) 编辑

2010年6月5日

c#与WORD之间的基本操作

摘要: //以下都是本人这位小菜鸟亲手在VS2008中调试过,//在此愿意和大家分享//记得添加应用//添加应用的方法是:在资源管理器中右键应用按钮添加新的应用,之后再.net中找到Microsoft.offoce.word.11版本//祝您学习愉快。。。。using System;using System.IO;using System.Collections.Generic;using System.... 阅读全文

posted @ 2010-06-05 19:15 章术 阅读(656) 评论(0) 推荐(0) 编辑

C#动态生成WORD文档并进行操作。

摘要: //以下都是本人这位小菜鸟亲手在VS2008中调试过,//在此愿意和大家分享//记得添加应用//添加应用的方法是:在资源管理器中右键应用按钮添加新的应用,之后再.net中找到Microsoft.offoce.word.11版本//祝您学习愉快。。。。using System;using System.IO;using System.Collections.Generic;using System.... 阅读全文

posted @ 2010-06-05 19:04 章术 阅读(1386) 评论(0) 推荐(0) 编辑

2010年6月1日

Excel的VBA连接数据库方法

摘要: Sub GetData() Dim strConn As String, strSQL As String Dim conn As ADODB.Connection Dim ds As ADODB.Recordset Dim col As Integer '清空电子表格的所有数据 Cells.Clear '连接数据库的字符串 strConn = "Provider=SQLOLEDB.1;... 阅读全文

posted @ 2010-06-01 12:48 章术 阅读(2178) 评论(0) 推荐(0) 编辑

2010年5月30日

vb.net与XML之间的操作

摘要: Imports System.Xml '声明XMLPublic Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim dataset As New DataSet '声明一个dataset dataset.... 阅读全文

posted @ 2010-05-30 21:42 章术 阅读(3863) 评论(1) 推荐(1) 编辑