水晶报表未在网页上呈现. [英] crystal report not rendering on web page.
本文介绍了水晶报表未在网页上呈现.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我从侧面进行了更多尝试,但水晶报告未显示在网页上,因此请提出我该怎么办.代码下面.
I tried much more from my side but crystal report not showing on webpage so please suggest what can i do. code bellow.
SqlDataAdapter da = new SqlDataAdapter("SELECT * FROM tbl_CurrentStock", con);
DataSet1 dt = new DataSet1();
da.Fill(dt, "Report");
ReportDocument rd = new ReportDocument();
rd.SetDatabaseLogon("sa", "server@1", "(local)", "storedb");
rd.Load(Server.MapPath("CrystalReport1.rpt"));
rd.SetDataSource(dt.Tables["Report"]);
CrystalReportViewer1.ReportSource = rd;
CrystalReportViewer1.DataBind();
推荐答案
逐步查看,您将获得解决方案.:)
Crystal报告asp.net中的示例/示例 [ ^ ]
在C#VB.Net和Visual Studio 2010中使用DataSet或DataTable的Crystal Report ASP.Net示例 [
see step by step and you will got solution.. :)
Crystal reports example/sample in asp.net[^]
Crystal Report ASP.Net Example using DataSet or DataTable in C# VB.Net and Visual Studio 2010[^]
这篇关于水晶报表未在网页上呈现.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文