Profile Picture

Execute toolbar command without displaying the toolbar

Posted By Kevin Harrison 14 Years Ago
Author
Message
Kevin Harrison
Posted 14 Years Ago
View Quick Profile
Forum Guru

Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 52, Visits: 1

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



bob milanov
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)Supreme Being (152 reputation)

Group: Forum Members
Last Active: 6 Months Ago
Posts: 153, Visits: 11

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



Kevin Harrison
Posted 14 Years Ago
View Quick Profile
Forum Guru

Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)Forum Guru (52 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 52, Visits: 1

Bob

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

Thanks

Kevin



Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

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).



Best Regards,
Nevron Support Team





Similar Topics


Reading This Topic