tag:blogger.com,1999:blog-4357140756496246910.post221133137925071393..comments2023-05-02T10:08:13.062+02:00Comments on Azure & Co: Use a Microsoft Asp .Net Chart Control in a SharePoint Web PartMarc Charmoishttp://www.blogger.com/profile/15609021917135631768noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-4357140756496246910.post-25664989054555842832012-11-07T11:37:06.748+01:002012-11-07T11:37:06.748+01:00how can we generate chart dynamically. i.e I have ...how can we generate chart dynamically. i.e I have a drop down list with department details. When i select the deparment name .the coressponding department details should me displayed on the chartcontrols....<br />Anyone help me my mail id is <br />tarun00198@gmail.com<br />Thanks in advance..TARUNhttps://www.blogger.com/profile/00789907882440122938noreply@blogger.comtag:blogger.com,1999:blog-4357140756496246910.post-60328789565147359712010-11-08T20:15:27.895+01:002010-11-08T20:15:27.895+01:00Hi Marc,
I found out what happened. In your othe...Hi Marc,<br /><br />I found out what happened. In your other tutorial (http://mosshowto.blogspot.com/2008/11/chart-controls-net-framework-sharepoint.html), it had more entries within the web.config file. Once I put those entries in, the web part appeared within my sharepoint page.<br /><br />Thanks for your tutorials! They are very helpful.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4357140756496246910.post-13386775402974621982010-11-05T19:47:51.573+01:002010-11-05T19:47:51.573+01:00Hi Marc,
I'm new to both SharePoint and MS Ch...Hi Marc,<br /><br />I'm new to both SharePoint and MS Charts. My first project that I need to create involves both. I followed your step with 'Use a Microsoft Asp .Net Chart Control in a SharePoint Web Part' very carefully. Once I uploaded it to Shartpoint, I got the error message:<br />Object reference not set to an instance of an object. at AspNetChartControl.SharePoint.WebParts.DynamicLegendWebPart.CreateChildControls() <br /><br />Do I need to create an additional file within the solution other than 'DynamicLegendWebPart.cs' as you described? Would you please steer me in the right direction? I'm hoping that once I can get your example working, I can use it as a guideline for the charts I need to development.<br /><br />Thanks!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4357140756496246910.post-30415334804311430802010-08-05T17:06:08.329+02:002010-08-05T17:06:08.329+02:00Hi,
you should rather use an httpModule.
Here ...Hi, <br /><br />you should rather use an httpModule. <br /><br />Here is a complete example of the use of httpModule for virtual paths : <br /><br />http://blogs.msdn.com/b/gzunino/archive/2007/09/17/hosting-a-wcf-service-in-windows-sharepoint-services-v3-0.aspx<br /><br />Cheers!<br /><br />MarcMarc Charmoishttps://www.blogger.com/profile/15609021917135631768noreply@blogger.comtag:blogger.com,1999:blog-4357140756496246910.post-35503579345271378732010-08-05T14:40:33.911+02:002010-08-05T14:40:33.911+02:00Dohh. My fault should have checked the trust level...Dohh. My fault should have checked the trust levels first. Increased them to High or WSS_Medium and puff I have a chart. <br /><br />Does anyone know the recommended place to store the temporary image files for farm deployment? Say mutliple front end webs. <br /><br />If I store it memory it will be local to the box and the second http request to get the image may fail if it goes to a different server. The only way I could think of would be a virtual path where the directory is on shared network space. But I would prefer to use the database. Would this require a custom http handler?<br /><br />Thanks,<br />Karl.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4357140756496246910.post-73823726252109571272010-08-05T12:18:56.971+02:002010-08-05T12:18:56.971+02:00hI,
Bit of background I am using the MSChart Cont...hI,<br /><br />Bit of background I am using the MSChart Controls in a sharepoint environment that must be deployable on a farm environment.<br /><br />I am using the following url parameter to try and store the temporary images in a sharepoint:<br /><br /><br /><br />where /Images1/ is the relative url of the document library. i.e. the full url is http://localhost:80/Images1/.<br /><br />However, I get the following error:<br /><br />An exception occurred:System.InvalidOperationException: Invalid 'url' in chart handler configuration. ---> System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping) at System.Web.HttpServerUtility.MapPath(String path) at System.Web.UI.DataVisualization.Charting.ChartHttpHandlerSettings.Inspect() The action that failed was: Demand The type of the first permission that failed was: System.Security.Permissions.FileIOPermission The Zone of the assembly that failed was: MyComputer --- End of inner exception stack trace --- at System.Web.UI.DataVisualization.Charting.ChartHttpHandlerSettings.Inspect() at System.Web.UI.DataVisualization.Charting.ChartHttpHandlerSettings.ParseParams(String parameters) at System.Web.UI.DataVisualization.Charting.ChartHttpHandlerSettings..ctor(String parameters) at System.Web.UI.DataVisualization.Charting.ChartHttpHandler.InitializeParameters() at System.Web.UI.DataVisualization.Charting.ChartHttpHandler.EnsureInitialized(Boolean hardCheck) at System.Web.UI.DataVisualization.Charting.Chart.GetImageStorageMode() at System.Web.UI.DataVisualization.Charting.Chart.Render(HtmlTextWriter writer) at ChartPart.ChartPartWebPart.Render(HtmlTextWriter writer) <br /><br />The account of my app pool has full write access to the site and to the content database.<br /><br />Any Ideas why I may be getting this error?<br /><br />Thanks in advance.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4357140756496246910.post-68923714234943820832010-01-04T08:04:34.960+01:002010-01-04T08:04:34.960+01:00Hi,
I got error that i couldnot add my web parts b...Hi,<br />I got error that i couldnot add my web parts bcoz i couldnot import it into my site.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4357140756496246910.post-61053427101241389932009-02-25T14:08:00.000+01:002009-02-25T14:08:00.000+01:00Hi Leo,Sorry, I have just seen your message today....Hi Leo,<BR/><BR/>Sorry, I have just seen your message today. I will check and try to find an answer as soon as possible.Marc Charmoishttps://www.blogger.com/profile/15609021917135631768noreply@blogger.comtag:blogger.com,1999:blog-4357140756496246910.post-79334030521411413522009-02-11T21:29:00.000+01:002009-02-11T21:29:00.000+01:00Hi Marc, i have created Sharepoint site with MSCha...Hi Marc, i have created Sharepoint site with MSChart Controll following your instructions, but i can't cautch Post_Paint Event from ChartArea. Do i need make some changes in webconfig to cautch this event?<BR/><BR/>1000 Thanks!Leohttps://www.blogger.com/profile/17521994517758067027noreply@blogger.comtag:blogger.com,1999:blog-4357140756496246910.post-13905984296903332782008-12-15T18:18:00.000+01:002008-12-15T18:18:00.000+01:00Hi,Solved the case ..the url is the one given in w...Hi,<BR/>Solved the case ..<BR/>the url is the one given in web.config in line:<BR/>add key="ChartImageHandler" value="storage=memory;timeout=20;URL=/_layouts/Images/MicrosoftChartControls/"<BR/><BR/>Thanks..Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4357140756496246910.post-14801536315491840672008-12-15T18:00:00.000+01:002008-12-15T18:00:00.000+01:00Hi Marc,I'm trying your procedure..I'm getting (Th...Hi Marc,<BR/>I'm trying your procedure..I'm getting <BR/>(The "DynamicLegendWebPart" Web Part appears to be causing a problem. Invalid 'url' in chart handler configuration. ) when adding the webpart to the page.<BR/><BR/>Where's this url defined?<BR/>Thanks..Anonymousnoreply@blogger.com