解决了已经
把sda.Fill(ds1);
改成sda.Fill(ds1,"Customers");
把sda.Fill(ds1);
改成sda.Fill(ds1,"Customers");
解决方案 »
- 如何使用VS2010与SQL Server2005开发Web程序
- 有些路径中#号是做什么的?像QQ空间里的路径
- 求救!弹出窗口问题!
- 水晶报表问题!
- AjaxPro.2 在HTml页面怎么使用???
- 哪里有ASP.NET版的WebBrowser控件下载
- 如何实现:点击页面中的按钮,就可以保存该页面?
- 水晶报表格式问题?????急!!!
- 在web form中如何的到某种类型控件的集合
- 哪里有ASP.NET B2版的书卖?
- 出错:Response.Write("<script>WriteMail(50,0);</script>"); 其中writeMail()是main.js中的函数
- 上传图片的困惑!!(初学者不要笑我)
- 使用 Report 对象 (通过文本路径)
- 使用非类型的 Report 组件 (通过文本路径和 ReportDocument reportdocument1)
- 使用 Report 对象 (通过已添加到项目的报表文件,如:World Sales Report.rpt)
- 使用强类型的 Report 组件()(通过 ReportDocument world_Sales_Report1)
注:Report 组件即“工具箱”-〉“组件”-〉“ReportDocument”3、代码简介:
- 使用 Report 名 (通过文本路径)
CrystalReportViewer1.ReportSource = "C:\Crystal\crnet\vbnet_win_simplepreviewreport\World Sales Report.rpt"
'--------------------------------------------------------------------
- 使用 Report 对象 (通过文本路径)
Dim crReportDocument As New CrystalDecisions.CrystalReports.Engine.ReportDocument()
crReportDocument.Load("C:\Crystal\crnet\vbnet_win_simplepreviewreport\World Sales Report.rpt")
CrystalReportViewer1.ReportSource = crReportDocument
'--------------------------------------------------------------------
- 使用非类型的 Report 组件 (通过文本路径和 ReportDocument reportdocument1)
Dim reportdocument1 As New CrystalDecisions.CrystalReports.Engine.ReportDocument()
reportdocument1.Load("C:\Crystal\crnet\vbnet_win_simplepreviewreport\World Sales Report.rpt")
CrystalReportViewer1.ReportSource = reportdocument1
'--------------------------------------------------------------------
- 使用 Report 对象 (通过已添加到项目的报表文件,如:World Sales Report.rpt)
CrystalReportViewer1.ReportSource = New World_Sales_Report()
'--------------------------------------------------------------------
- 使用强类型的 Report 组件()(通过 ReportDocument world_Sales_Report1)
CrystalReportViewer1.ReportSource = world_Sales_Report1