Sign in to follow this  
rubenruvalcaba

Using FusionCharts with VB.NET on Windows Forms

Recommended Posts

Hi, I want to integrate the FusionCharts in a windows forms application (using vb.net or c#)

I already added a Showckwave Flash Object to the form, I set the Movie property to the swf file. But how should I set the xml path or xml string with the data?

Share this post


Link to post
Share on other sites

Hi,

IF the flash objects's name is FC then..

in C# :

To set XML path use : FC.setVariable("dataURL","xmlfilename.xml");

to set data XML use : FC.setVaraible("dataXML",strXML);

in VB :

To set XML path use : FC.setVariable("dataURL","xmlfilename.xml")

to set data XML use : FC.setVaraible("dataXML",strXML)

Share this post


Link to post
Share on other sites

Hi,

Here goes a simple example of FusionCharts in C# Windows Application. THe compiled exe is present in Compiled folder. Its in asp.net 2.0. So please use ,net 2.0 framework.

[i have used the latest flash player from Adobe's site.]

NOTE : You may face problem whlle adding the cox control in windows form.(its a known issue in VS2005) Trick : Add Shockwave Flash COM component in toolbox. Then copy the 2 dll files (AxInterop.ShockwaveFlashObjects.dll and Interop.ShockwaveFlashObjects.dll) in ObjDebug folder. Now try adding the flash control from toolbox to ur form. IT will work.

 

FusionChartsCSv01.zip

Share this post


Link to post
Share on other sites

Hi ,

  I am trying to use Fusion Charts in Window application.

but I got error when calling following function

FC.CallFunction(FlashCall("setDataXML", args));

and error is "Error HRESULT E_FAIL has been returned from a call to a COM component."

Please reply

Avinash

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