avinash Report post Posted July 28, 2008 hi rahul, I want to to change Chart type dynamically. for example. When I click on "button1" I want to show FCF_column3d.swf and on "button2" click i want to show FCF_Doughnut2D.swf plz reply Avinash Share this post Link to post Share on other sites
Rahul Kumar Report post Posted July 28, 2008 Hi Avinash, Please use the following code: private void btnColumn3D_Click(object sender, EventArgs e){ FC.Movie = Application.StartupPath + "FCF_Column3D.swf?chartWidth=" + FC.Width.ToString() + "&chartHeight=" + FC.Height.ToString();FC.SetVariable( "dataXML", textBox1.Text);} private void btnDoughnut2D_Click(object sender, EventArgs e){ FC.Movie = Application.StartupPath + "FCF_Doughnut2D.swf?chartWidth=" + FC.Width.ToString() + "&chartHeight=" + FC.Height.ToString();FC.SetVariable( "dataXML", textBox1.Text);} Share this post Link to post Share on other sites