Sign in to follow this  
CaptainCaveman

How Can I Detect A Problem With The Xml From My Winforms App?

Recommended Posts

Hello,

 

I have a winforms application that uses AxShockwaveFlashObjects.AxShockwaveFlash to play FusionCharts MSCombi2D.swf with XML data coming from my server.

Sometimes my request for data returns an xml saying there's no data, in which case I get an invalid xml data message. Is there a way for me to get an indication of that in my C# code?

 

Thanks!

Share this post


Link to post
Share on other sites

Hi,

 

Could you please try using the following code?

 

In movie property append registerWithJS=1 in FlashVars or with .Movie property.

 

axShockwaveFlash1.Movie="{path to swf}?registerWithJS=1"


       // Create axShockwaveFlash1.FlashCall event hander
       axShockwaveFlash1.FlashCall += new AxShockwaveFlashObjects._IShockwaveFlashEvents_FlashCallEventHandler(axShockwaveFlash1_FlashCall);

       // In e.Request parameter check for the event name raised by the chart itself.
       void axShockwaveFlash1_FlashCall(object sender, AxShockwaveFlashObjects._IShockwaveFlashEvents_FlashCallEvent e)
       {
           if (e.request.Contains("FC_DataXMLInvalid"))
           {
               // TODO: Handle Invalid XML Data Error.
           }
           else if (e.request.Contains("FC_NoDataToDisplay"))
           {
               // TODO: Handle No Data To Display error.
           }
       }

 

Share this post


Link to post
Share on other sites
Guest Angshu

Hi,

 

Glad to know that you have managed to resolve your problem.

 

Happy FusionCharting! biggrin.gif

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