sharpGraph1.DoCommand(DataDynamics.SharpGraph.Windows.UICommand.New) doesn't work!


12-04-2008, 12:37 PM
Hi,

I cannot perform sharpGraph1.DoCommand(DataDynamics.SharpGraph.Windows.UICommand.New);

First time the new graph dialog appeared but the result cannot applied on the graph: the old graph is simply cleared. At the following tests the thing got worse: even the dialog disappeared. Then I reinstalled the  SharpGraph.NET.1.2.1.1588.msi and I get the same result: the New dialog disappeared and the old graph is cleared. The same situation also happened when I perform the Sampers in help folder.

I am using VS.NET 2008. and Windows XP SP2.

What should I do now?

David Liu

Re: sharpGraph1.DoCommand(DataDynamics.SharpGraph.Windows.UICommand.New) doesn't work!


12-04-2008, 1:16 PM
Thank you for your question. Unfortunately I am not sure I completely understand your question. The attached sample works well in my testing to clear the previous chart and display the chart wizard to create a new chart when the button labeled “New” is pressed.

If my test does not accurately represent your scenario could you please modify the attached sample and provide me with some additional information about the behavior you are seeing verses what you expect to see?

Thanks,
    Eric

Re: sharpGraph1.DoCommand(DataDynamics.SharpGraph.Windows.UICommand.New) doesn't work!


12-04-2008, 1:33 PM
Hi Eric,

Think you for your quickly respond.

I download your sample and run it minutes ago. The same thing happened: it when I press the New button only the graph is cleared but no wizard appeared. The same thing happened when I run the SharpGraph Sampler in the help folder.

I reinstalled the newest version SharpGraph already.

Any suggestion ?

David Liu

Re: sharpGraph1.DoCommand(DataDynamics.SharpGraph.Windows.UICommand.New) doesn't work!


12-04-2008, 1:54 PM
Thank you for your reply. Unfortunately, I am not sure exactly what could cause this machine specific behavior. However, please ensure you have the latest updates available for Visual Studio. Also, please provide me with any additional information you may have that could help me reproduce the issue in a testing environment.

Attached is a video of what I see in my testing.

Thanks,
    Eric

Re: sharpGraph1.DoCommand(DataDynamics.SharpGraph.Windows.UICommand.New) doesn't work!


12-04-2008, 2:58 PM
Hi Eric,

Now I found something. If I want to use the Wizard, I should invoke as following:

            sharpGraph.DoCommand(DataDynamics.SharpGraph.Windows.UICommand.Wizard);

and the command New just clear the graph area. Is this right?

David Liu

Re: sharpGraph1.DoCommand(DataDynamics.SharpGraph.Windows.UICommand.New) doesn't work!


12-04-2008, 3:11 PM
Thank you for your reply. In my testing New clears the control and pops up the wizard, but if you are only wanting to pop up the wizard then “sharpGraph.DoCommand(DataDynamics.SharpGraph.Windows.UICommand.Wizard);” would be the recommended approach.

Thanks,
    Eric