Page 1 of 1

AddApplicationMenuItem Problem

Posted: Fri Oct 09, 2009 10:30 am
by johnham
I finally got around to using this feature that you guys so graciously put in there for me. I have my first menu item inserted and an event handler created for it like the following:

Code: Select all

Ribbon.AddApplicationMenuItem("Export Report Layout", new EventHandler(ExportReportLayout), null, 3);
My problem is that the event handler does not have any reference to the designer and thus the report that is currently loaded. In most of the events I have hooked the "sender" parameter is set to the report designer. In this event hook, it is set to the GUI Ribbon Bar or something of that nature. From this object I have no way of finding a reference to the designer or loaded report.

Any help you can provide here would be great.

Thanks,
John Hamilton

AddApplicationMenuItem Problem

Posted: Fri Oct 09, 2009 3:07 pm
by Edward
Hi John,

The problem is clear, we will let you know about the possible solution.

Thank you.

AddApplicationMenuItem Problem

Posted: Tue Oct 13, 2009 4:37 pm
by johnham
Any progress on this?


AddApplicationMenuItem Problem

Posted: Fri Oct 16, 2009 1:18 am
by Jan
Hello John,

We have changed sender for this event handler. Please check next prerelease build.

Thank you.

AddApplicationMenuItem Problem

Posted: Fri Oct 16, 2009 1:20 am
by johnham
Thank you all mighty Jan! :biggrin: