SharePoint 2010中的自定义图表控件 [英] custom chart control in sharepoint 2010
本文介绍了SharePoint 2010中的自定义图表控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨..
我是新的共享点..我尝试使用.net图表控件设计自定义图表控件..部署到共享点页面后,未显示图表图像..图表未加载..
任何人都知道这是什么问题...请帮助我...
我有如下所示的web.config编码..
hi ..
i''m new sharepoint.. i tried to design custom chart control using .net chart control.. after deploying to sharepoint page, the chart image is not shown.. chart is not loaded..
anyone know what s the problem... plz help me...
i''ve web.config coding like below..
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting" assembly="System.Web.Datavisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</controls>
</pages>
<httpHandlers>
<add path="ChartImg.axd" verb="GET, HEAD" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
</httpHandlers>
<appSettings>
<add key="ChartImageHandler" value="Storage=memory;Timeout=180;Url=~/tempImages/;" />
</appSettings>
and.. my chart control code is..
<asp:Chart ID="chrtDepartment" ImageStorageMode="UseHttpHandler" RenderType="ImageMap" runat="server" BorderSkin-SkinStyle="Emboss" BorderlineDashStyle="Solid" BorderlineColor="#1A3B69" Visible="true">
<Series>
<asp:Series Name="Series1" YValueType="Int32" ChartArea="chrtAreaDepartment" ChartType="Line" IsValueShownAsLabel="true">
<Points>
<asp:DataPoint AxisLabel="1" YValues="12" />
<asp:DataPoint AxisLabel="2" YValues="34" />
<asp:DataPoint AxisLabel="3" YValues="10" />
</Points>
</asp:Series>
</Series>
<ChartAreas>
<asp:ChartArea Name="chrtAreaDepartment" Area3DStyle-Enable3D="true">
</asp:ChartArea>
</ChartAreas>
</asp:Chart>
推荐答案
感谢您的帖子..我解决了..
我在共享点页面的Web配置文件中做了如下更改..可能对像我这样的人有所帮助...
thanks for ur post.. i solved..
i did changes in web config file of sharepoint page like below.. may help to someone like me...
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting" assembly="System.Web.Datavisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</controls>
</pages>
<httpHandlers>
<add path="ChartImg.axd" verb="GET, HEAD" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
</httpHandlers>
<appSettings>
<add key="ChartImageHandler" value="Storage=memory;Timeout=180;Url=~/tempImages/;" />
</appSettings>
<handlers>
<add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD,POST" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</handlers>
http://mosshowto .blogspot.com/2008/12/asp-net-chart-control-sharepoint.html [
这篇关于SharePoint 2010中的自定义图表控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文