andymc123 Report post Posted August 18, 2009 I am trying to get Fusion Charts to run on my local machine in VS2008. The samples that are provided with Fusion Charts work when I run them, but any chart that I build on my own gives me the error 'FusionCharts is undefined'. I am creating an ascx file with no code behind and trying to run the control within the Default.aspx page. This is the way that our pages need to be created so that we can place place the controls into our internal web interface. Is there something else that I need to Import? <%@ Control Language="VB" ClassName="TestFusionChart" %> <%@ Import Namespace="InfoSoftGlobal" %> <script runat="server"> Public Function GetGraphData() As String Dim xmlData As New StringBuilder() xmlData.Append("<chart caption='Monthly Unit Sales' xAxisName='Month' yAxisName='Units' showValues='0' formatNumberScale='0' showBorder='1'> " _ & "<set label='Jan' value='462' /><set label='Feb' value='857' /><set label='Mar' value='671' /><set label='Apr' value='494' /><set label='May' value='761' /> " _ & "<set label='Jun' value='960' /><set label='Jul' value='629' /><set label='Aug' value='622' /><set label='Sep' value='376' /><set label='Oct' value='494' /><set label='Nov' value='761' /><set label='Dec' value='960' /></chart>") Return FusionCharts.RenderChart("/Charts/Line.swf", "", xmlData.ToString, "", "600", "300", False, False) End Function </script> <table style="width:100%;"> <tr><td> </td> <td style="text-align: center"> TEST CHART</td> <td> </td></tr> <tr><td> </td> <td style="text-align: center"> <%=GetGraphData()%></td> <td> </td> </tr><tr> <td> </td> <td> </td> <td> </td> </tr></table> Share this post Link to post Share on other sites
Guest Rajroop Report post Posted August 19, 2009 Hello, Welcome to the FusionCharts Forum. Could you please check whether you have added the fusioncharts.dll file in the bin folder, which would be a sub-directory of your project folder? You can find this file in the Fusioncharts Package by the following path: FusionCharts>code>VB_NET>bin. I hope tihs helps. Share this post Link to post Share on other sites
andymc123 Report post Posted August 19, 2009 Hello Supreme B, Yes the FusionCharts.dll is in the bin folder as well as the InfoSoftGlobal.dll. I wasn't sure which would be needed so referenced them both. I actually couldn't even get the samples to run until I placed them in the bin folder. Any other ideas? Share this post Link to post Share on other sites
FusionCharts Support Report post Posted August 20, 2009 Hi, Could you please try once removing InfoSoftGlobal.dll? This file if for ASP.NET 1.1. Share this post Link to post Share on other sites
andymc123 Report post Posted August 21, 2009 When I try that I get a compilation error stating that FusionCharts is not declared. I have tried a number of different things, even creating a whole new project with only one control that is a test FusionChart and I still can not get one to work on an ascx page running on an aspx page. Compiler Error Message: BC30451: Name 'FusionCharts' is not declared. Source Error: Line 8: & "<set label='Jan' value='462' /><set label='Feb' value='857' /><set label='Mar' value='671' /><set label='Apr' value='494' /><set label='May' value='761' /> " _Line 9: & "<set label='Jun' value='960' /><set label='Jul' value='629' /><set label='Aug' value='622' /><set label='Sep' value='376' /><set label='Oct' value='494' /><set label='Nov' value='761' /><set label='Dec' value='960' /></chart>")Line 11: End FunctionLine 12: </script> Share this post Link to post Share on other sites