04 2010 档案

摘要:#region"合并单元格的测试" private int? nextrow = null; private int? nextcol = null; private void dataGridView1_CellFormatting(object sender, System.Windows.Forms.DataGridViewCellFo... 阅读全文
posted @ 2010-04-20 11:41 Alum 阅读(1142) 评论(0) 推荐(0)
摘要:7月13日 RDLC报表,ReportViewer VS .NET开发中,用什么做报表? 可能的回答是Crystal Report,自.NET“紧密”集成Crystal Report后,这可能是开发人员比较单一的选择。但是,这种集成似 乎并不非常紧密,网络上充斥着关于使用Crystal Report的抱怨,太复杂也许是其最为令人诟病的地方,自定义性比较差也不能为程序员们所容忍。 ... 阅读全文
posted @ 2010-04-20 11:30 Alum 阅读(1430) 评论(0) 推荐(0)
摘要:我用的是一种很笨的方法,但可以帮助初学者了解访问XML节点的过程。已知有一个XML文件(bookstore.xml)如下:Corets, Eva5.951、插入节点往节点中插入一个节点: XmlDocument xmlDoc=new XmlDocument();xmlDoc.Load ("bookstore.xml");XmlNode root=xmlDoc.SelectSingleNode(... 阅读全文
posted @ 2010-04-16 11:37 Alum 阅读(171) 评论(0) 推荐(0)
摘要:Spreadsheet.XMLData 字符串类型的属性,可用来获得或设置XML格式的电子表格内容。Spreadsheet.Range 该方法接受一个区域引用(例如A1:B2或A:B),返回一个Range对象。Spreadsheet.ActiveSheet 当前激活Sheet页Spreadsheet.Cells 单元格集合Spreadsheet.ActiveShe... 阅读全文
posted @ 2010-04-16 09:39 Alum 阅读(259) 评论(0) 推荐(0)
摘要:重写窗体的Enter事件 protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { if (keyData == Keys.Enter && dataGridView1.Focused) { //你要的功能 ... 阅读全文
posted @ 2010-04-15 19:40 Alum 阅读(194) 评论(0) 推荐(0)
摘要:最近做一个项目,按客户需求,需要生成一些报表,OWC是比较合适的组件. 1、如何安装OWC组件 OWC是Office Web Compents的缩写,即Microsoft的Office Web组件,包含SpreadSheet组件、Chart组件、PioTable组件和Data Source组件。 只要装了 Office 办公软件 ,在 C:\Program Files\MSECach... 阅读全文
posted @ 2010-04-14 20:13 Alum 阅读(799) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text; namespace hm_ykt{ public class Money { /// &nb sp; /// 要转换的数字 /// private double... 阅读全文
posted @ 2010-04-14 16:08 Alum 阅读(238) 评论(0) 推荐(0)