[英]Chart not showing in crystal reports
I am trying to show Charts using crystal reports
in vs2010
but chart
is not showing up in the browser. 我试图在
vs2010
使用crystal reports
显示图表,但浏览器中未显示chart
。 it looks like the screenshot below. 看起来像下面的截图。
ReportDocument rptDoc = new ReportDocument();
dsSample ds = new dsSample();
DataTable dt = new DataTable();
dt.TableName = "Crystal Report Example";
dt = getAllOrders();
ds.Tables[0].Merge(dt);
rptDoc.Load(Server.MapPath("graphReport.rpt"));
thanks! 谢谢!
Here you need to configure you web.config file to make crystal reports handle your charts and images in it. 在这里,您需要配置web.config文件,以使Crystal报表可以处理其中的图表和图像。 add following setting in the web.config file
在web.config文件中添加以下设置
-----In <system.web>
section add -----在
<system.web>
部分中添加
<httpHandlers>
<add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
</httpHandlers>
This will handle you images and charts in crystal reports 这将为您处理水晶报表中的图像和图表
Best of luck... 祝你好运...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.