SqlConnection conn=new SqlConnection("data source=server;initial catalog=Northwind;user id=sa;password=''");
DataSet ds = new DataSet();SqlDataAdapter da1=new SqlDataAdapter("select * from orders",conn);
da1.Fill(ds,"orders");
CrystalReport3 oCR=new CrystalReport3();
oCR.SetDataSource(ds);
this.crystalReportViewer2.ReportSource = oCR;这样写什么出现的报表显示的是空白啊!
是不是报表(CrystalReport3)还需要设计什么的啊!
DataSet ds = new DataSet();SqlDataAdapter da1=new SqlDataAdapter("select * from orders",conn);
da1.Fill(ds,"orders");
CrystalReport3 oCR=new CrystalReport3();
oCR.SetDataSource(ds);
this.crystalReportViewer2.ReportSource = oCR;这样写什么出现的报表显示的是空白啊!
是不是报表(CrystalReport3)还需要设计什么的啊!
解决方案 »
- winform :webBrowser.Navigate(@"c:\a.htm"); HtmlDocument htmlDoc = myBrowser.Document;htmlDoc.Body.//得到的值怎么为空呢
- 如何把ToolStrip控件中Lable中文本多行显示
- 请问为什么的我站点地图无法显示?
- CRYSTAL REPORT 转EXCEL格式会乱如何解决?
- 一个重载问题
- 请问大家如何实现ListBox全选的效果
- C#接写的程序,编译成.EXE文件后,是不是只能在安装 .NET 框架的机器上运行???
- C# 模拟用户操作软件
- 关于C#公历转农历问题
- 能声明动态数组么?
- 如果从多个数据库调用不同的字段,那我怎么建立连接,得用多个连接字符串把?
- treeview中如何返回节点值??
try
{
rpt1.SetDataSource(Dcpfcp.get_account_report(Session["user"].ToString() ));
}
catch(Exception ex)
{
this.errmsgbox.Value =ex.Message;
}
this.CrystalReportViewer1.ReportSource=rpt1;
该文件是你往项目中添加CrystalReport3报表时自动生成的.没有的话你要在资源管理器中重新添加报表,或者是你的水晶报表出了问题,它不能自动生成这个文件.