looksharp123 Posted April 6, 2007 Report Share Posted April 6, 2007 Hi there Is it a difficult or straightforward thing to integrate Chart FX components into custom web parts (i.e. web parts created using the WebPartManager control in VS 2005 for a straightforward ASP.NET application, not one based on the Sharepoint platform)? I can only find information related to Sharepoint, but we don't develop this way. I'd appreciate any comments. Best regards Loane Link to comment Share on other sites More sharing options...
Frank Posted April 12, 2007 Report Share Posted April 12, 2007 Like any Web Control Chart FX can be added as a Web Part. I don't know exactly what kind of functionality are you looking for but if you care to elaborate maybe I can point you in the right direction. Link to comment Share on other sites More sharing options...
CyberWindSoftWorks Posted April 18, 2007 Report Share Posted April 18, 2007 We wrapped it in a server control and use the generic webpart to load it and it works fine. The one thing that we have not been able to get working is the Autosave Autoload; that feature will go into an endless loop the first time the part is added to the manager. Link to comment Share on other sites More sharing options...
Frank Posted April 18, 2007 Report Share Posted April 18, 2007 Are you rendering as an image or as a .NET Client? If you are rendering as an image. Are you handling the Personalized event? What are you doing in it? Link to comment Share on other sites More sharing options...
CyberWindSoftWorks Posted April 18, 2007 Report Share Posted April 18, 2007 We're using .NET. Actually some tidbits I picked up in other threads helped me get autosave and autoload working. UseCallbacksForEvents seemed to be key. BTW We're saving the personalize bytes in a web part personalizable property rather than the profile as the example docs show. This is all done in the server control wrapper I mentioned. [Personalizable(), WebBrowsable] public Byte[] ChartPersonalization { get { return btChartPersonalization; } set { try { btChartPersonalization = value; } catch (Exception) { } } } ... // Save if (e.Stream != null) { Byte[] btChart = new Byte[e.Stream.Length]; e.Stream.Read(btChart, 0, btChart.Length); e.Stream.Close(); // The web part property will be saved in personalization ChartPersonalization = btChart; } // Read it back... if (btChartPersonalization != null && btChartPersonalization.Length > 0) { e.Stream = new System.IO.MemoryStream(btChartPersonalization); } Link to comment Share on other sites More sharing options...
Frank Posted April 18, 2007 Report Share Posted April 18, 2007 Excellent, looks like you have it under control now. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.