解决方案 »
- 为什么执行这一句FillRegion(Brush brush,Region region)要花很长时间,超过600ms
- TextBox 如何控制 显示下拉框
- 在Bitmap上写文本~~我是一个一个字写上去的。几十K还好说,几百K文本要五六分钟谁帮我优化下!!
- ZedGraph 控件 Y轴的问题
- 水晶报表怎样插入小计
- C#事务问题
- ***********问一个在线程中使用SafeFileDialog 的问题**********
- vs2005中遇到的小问题!大家帮忙啊!谢谢大家了
- 倾家荡产问个问题~~~图片存到SQL中,在PICTUREBOX中显示出来
- 请问下 C# 怎么把httpclient get 返回的图片 保存
- CheckedListBox打勾、取消打勾触发哪个事件?
- 鼠标放到窗体上会变色,怎么实现
cr.SetDataSource(ds);//此位置报错
不用這兩句試一下,另外多種查詢的話是要做多報表的,用代碼很多功能實現不了!
cr.Load(Application.StartupPath + "CrystalReport2.rpt");
Load里面放的是CrystalReport2.rpt的路径;所以若是在编写软件时,要写成下面这种形式:
string strPath = Application.StartupPath.Substring(0, Application.StartupPath.Substring(0, Application.StartupPath.LastIndexOf("\\")).LastIndexOf("\\"));
strPath += @"\CrystalReport1.rpt";
cr.Load(strPath);