I am trying to show Charts using crystal reports
in vs2010
but chart
is not showing up in the browser. it looks like the screenshot below.
我试图在vs2010中使用水晶报告显示图表,但图表未显示在浏览器中。它看起来像下面的截图。
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!
1 个解决方案
#1
0
Here you need to configure you web.config file to make crystal reports handle your charts and images in it. add following setting in the web.config file
在这里,您需要配置web.config文件,以使Crystal报表处理您的图表和图像。在web.config文件中添加以下设置
-----In <system.web>
section add
-----在
<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...
祝你好运......
#1
0
Here you need to configure you web.config file to make crystal reports handle your charts and images in it. add following setting in the web.config file
在这里,您需要配置web.config文件,以使Crystal报表处理您的图表和图像。在web.config文件中添加以下设置
-----In <system.web>
section add
-----在
<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...
祝你好运......