Nevron Forum

Execute toolbar command without displaying the toolbar

https://www.nevron.com/Forum/Topic3807.aspx

By Kevin Harrison - Thursday, July 15, 2010

For example, I want to add a button to a form which saves or brings up the export dialog, without using the NChartCommandBarsManager.  How do I acheive this? I got to

NChartCommander commander = new NChartCommander();
                commander.ChartControl = nChartControl;
                commander.Commands[ChartCommand.Save].

but there is no Execute method?

Thanks

Kevin

By Blagovest Milanov 1 - Thursday, July 15, 2010

Hi Kevin,

All this command does is to call the ShowDialog method of the image exporter:

chartControl.ImageExporter.ShowDialog();

which you can also call directly.

Best regards,
Bob

By Kevin Harrison - Friday, July 16, 2010

Bob

Thanks - are there similar commands for all the other toolbar options? Are they listed together somewhere in the documentation?

Thanks

Kevin

By Nevron Support - Friday, July 16, 2010

Hi Kevin,

All commands in the manager can be accomplished with public chart API. There is no documentation on that but we can send you complete source code of all commands as reference (by e-mail of course as it will take too much space in the forum).