Sign in to follow this  
FusionCharts Support

Can someone simply show me how to make a chart from VB.net?

Recommended Posts

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this