Link to home
Start Free TrialLog in
Avatar of majorjohn
majorjohn

asked on

Dynamicaly Execute a menu Item.

I want to create a menu item dynamicaly and assign code to execute a report file (.rpt) under this menu item. So that if user click on that menu it will execute that report file. For any further clarification please leave comments.
Thanks in advance
ASKER CERTIFIED SOLUTION
Avatar of lif081199
lif081199

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of majorjohn
majorjohn

ASKER

Thanks for ur answer. Exactly correct for dynamicaly creating menu and Catch hold of it. Now my only query is how do I assign Report File(.RPT) execution code to the related ID.
-Within the OnProcessDynamicMenu, you know the name of the menu item selected (read above, the lne with SM->GetMenuString(...))

-From this menu item name, find the file name of your RPT file. (just a concatenation, I guess ?)

-Use the ShellExecute function to read it.

Lionel.
Your answer is to the point. I will check and award you positively.

Thanks for reply.
ok ok
Lionel.
Can u leave ur email no. So to contact u later for any further query.
you can join me here :

lfumery@nordnet.fr