TC Report post Posted February 19, 2010 My code is below. I have FusionCharts.asp and FusionChart_Gen.asp in my App_Code folder. I have Fusion.dll in my Bin folder. When I run this, I get an error stating SetChartType is not a member of InfoSoftGlobal. Why isn't it seeing SetChartType() within my FusionChart_Gen.asp file, that's in the App_Code folder? ========================================== Imports InfoSoftGlobal Imports System.Data.SqlClient Imports System.Data Imports System.Text Partial Class Mock Inherits System.Web.UI.Page Public Function TestGraph() As String Dim FC As New FusionCharts Dim ds As New DataSet Call FC.setChartType("pie3d") Call FC.setSize("650", "450") Call FC.setSWFPath("Fusion/FusionCharts/") Dim strParam$ = "caption=Factory Output report;subCaption=By Quantity;pieSliceDepth=30;numberSuffix= Units;decimals=0" Call FC.setChartParams(strParam) Dim Adapter As New SqlDataAdapter Dim strConn As String = ConfigurationManager.ConnectionStrings("LF").ConnectionString Dim conn As New SqlConnection(ConfigurationManager.ConnectionStrings("LF").ConnectionString) Dim cmd As SqlCommand = conn.CreateCommand Adapter = New SqlDataAdapter("vwTest", ConfigurationManager.ConnectionStrings("LF").ConnectionString) Adapter.Fill(ds) : Adapter.Dispose() Call FC.addDataFromDatabase(ds, "total", "FactoryName", "", "") ds.Dispose() Call FC.renderchart(False) End Function End Class Share this post Link to post Share on other sites
Guest Basundhara Ghosal Report post Posted February 22, 2010 Hi, Could you please re-check that root paths for the swf file that you are using is correct? Also, please re-check that the swf folder that you have included in your application is correctly placed. Awaiting your reply. Share this post Link to post Share on other sites
FusionCharts Support Report post Posted February 22, 2010 Hi, FusionCharts.asp and FusionCharts_Gen.asp are designed for Classic ASP and not ASP.NET. Hence, they are likely to be unusable in ASP.NET Share this post Link to post Share on other sites