摘要: 在程序开发中,经常要对合并计算、多级汇总、制作图表、条件格式化进行编程。在这种情况下用普通的数据控件很难完成,而水晶报表大大简化了这些工作。用其可以制作非常漂亮的图表、格式化文本,而且还可以把报表导出为Word、Excel、PDF、HTML等格式。 6.1  水晶报表技术 水晶报表,英文名为“Crystal Report”,其主要功能是用来表现数据。要向用户展... 阅读全文
posted @ 2010-08-11 11:33 根本风流 阅读(1670) 评论(0) 推荐(0) 编辑
摘要: c# winform 程序打包部署 1 新建一个 c# 安装部署项目 2 在文件系统编辑器里把做好的项目的可执行文件及要用到的其它文件(相关dll及资源文件)添加进来(应用程序文件夹) 3 如果要在程序菜单中加快捷方式,可以在应用程序文件夹里把项目的可执行文件 生成一个快捷方式,再剪切到 用户的程序菜单 栏里同时可以把名称改成你要的名称 4 如果要加进卸载功能 vs 2003 下 ,在应用... 阅读全文
posted @ 2009-12-21 19:13 根本风流 阅读(58947) 评论(8) 推荐(6) 编辑
摘要: 麦子 的 带图片闪光效果的向上滚动友情链接代码 友情链接(一) 链接名称 链接名称 链接名称 链接名称 链接名称 链接名称 链接名称 链接名称 链接名称 链接名称 代码如下: <CENTER><font face=华文行楷 size=5 color=#ff0000 >友情链接</FONT><BR> <TABLE WIDTH=180 border... 阅读全文
posted @ 2009-11-11 16:08 根本风流 阅读(647) 评论(0) 推荐(0) 编辑
摘要: 一、WORD中对象的属性种类 InlineShapes有一个type属性,type 是WdInlineShapeType WdInlineShapeType can be one of the following constants. wdInlineShapeEmbeddedOLEObject wdInlineShapeHorizontalLine wdInlineShapeLinkedOLEO... 阅读全文
posted @ 2009-08-21 17:45 根本风流 阅读(950) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Drawing; using System.Drawing.Imaging; using System.Collections; using System.Configuration; using System.Text.RegularExpressions;//执行不区分区域性的操作 using System.Windows.Forms; n... 阅读全文
posted @ 2009-08-14 15:55 根本风流 阅读(730) 评论(0) 推荐(0) 编辑
摘要: c#相对路径和系统路径 //获取启动了应用程序的可执行文件的路径,不包括可执行文件的名称。    string    str5=Application.StartupPath; //可获得当前执行的exe的文件名。        string  &... 阅读全文
posted @ 2009-06-05 17:35 根本风流 阅读(1691) 评论(0) 推荐(0) 编辑
摘要: public static DataSet DataSetDeserializeDecompre(byte[] b)        {            FileStream fss = File.Create("datase... 阅读全文
posted @ 2009-06-04 10:46 根本风流 阅读(328) 评论(0) 推荐(0) 编辑
摘要: public static byte[] DataSetSerializerCompression(DataSet ds) //这里我是将一个DataSet序列化及压缩,最后以byte形式返回 { IFormatter formatter = new BinaryFormatter();//定义BinaryFormatter以序列化DataSet对象 MemoryStream ms = new... 阅读全文
posted @ 2009-06-04 10:05 根本风流 阅读(782) 评论(0) 推荐(0) 编辑
摘要: 1.取下拉框的值 foreach(ListItem Item in DropDownListDepartment.Items) {} 2. foreach(DataRow dr in dt.Rows)             {} 3 foreach (GridViewRow row i... 阅读全文
posted @ 2009-05-31 19:25 根本风流 阅读(1056) 评论(0) 推荐(0) 编辑
摘要: 同步套接字通信 Socket支持下的网上点对点的通信 服务端实现监听连接,客户端实现发送连接请求,建立连接后进行发送和接收数据的功能 服务器端建立一个socket,设置好本机的ip和监听的端口与socket进行绑定,开始监听连接请求,当接收到连接请求后,发送确认,同客户端建立连接,开始与客户端进行通信。 客户端建立一个socket,设置好服务器端的IP和提供服务的端口,发出连接请求,接收到... 阅读全文
posted @ 2009-05-13 19:05 根本风流 阅读(436) 评论(1) 推荐(0) 编辑
摘要: using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; using System.Data.SqlClient; namespace HomeWorkTwoPrj { ... 阅读全文
posted @ 2009-02-24 09:40 根本风流 阅读(805) 评论(0) 推荐(0) 编辑