摘要: 1,创建DataSet 2,将字段绑定(拖动)到子报表 3,将子报表加入到主报表中(省略了主报表部分的初始化) Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> //create the relation of main repo... 阅读全文
posted @ 2008-12-02 19:16 ___大魔王 阅读(3221) 评论(2) 推荐(0)
摘要: 1,添加DataSet,添加相应的字段。 2,添加一个报表,并使用“数据库专家” 3,拖动到报表 4,代码设置数据绑定 public Form1() { InitializeComponent(); CrystalReport1 rpt = new CrystalReport1(); c... 阅读全文
posted @ 2008-12-02 18:07 ___大魔王 阅读(3359) 评论(2) 推荐(0)
摘要: 1,获取当前运行程序的路径 stringstr1=Process.GetCurrentProcess().MainModule.FileName;//可获得当前执行的exe的文件名。 stringstr2=Environment.CurrentDirectory;//获取和设置当前目录(即该进程从中启动的目录)的完全限定路径。 //... 阅读全文
posted @ 2008-12-02 14:24 ___大魔王 阅读(489) 评论(0) 推荐(0)