AddApplicationMenuItem Problem

Stimulsoft Reports.NET discussion
Post Reply
johnham
Posts: 98
Joined: Fri Sep 19, 2008 2:27 pm
Location: Richland, WA, USA

AddApplicationMenuItem Problem

Post 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
Thanks,
John Hamilton
Hamilton & Company, LLC
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

AddApplicationMenuItem Problem

Post by Edward »

Hi John,

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

Thank you.
johnham
Posts: 98
Joined: Fri Sep 19, 2008 2:27 pm
Location: Richland, WA, USA

AddApplicationMenuItem Problem

Post by johnham »

Any progress on this?

Thanks,
John Hamilton
Hamilton & Company, LLC
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

AddApplicationMenuItem Problem

Post by Jan »

Hello John,

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

Thank you.
johnham
Posts: 98
Joined: Fri Sep 19, 2008 2:27 pm
Location: Richland, WA, USA

AddApplicationMenuItem Problem

Post by johnham »

Thank you all mighty Jan! :biggrin:
Thanks,
John Hamilton
Hamilton & Company, LLC
Post Reply