Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Giving report design toolbar at runtime
Message
 
To
04/05/2001 02:40:57
Rakesh Pahwa
Symco Software P. Ltd.
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00503362
Message ID:
00503418
Views:
20
Is there any way by which we can include system toolbars (for reports) in the application ?

Hello,

1.) Create a new menu -- and then use the quick menu option from the "menu" bar.
2.) Delete all bars except for File, Edit, View and name the menu something ReptMenu.
3.) In your application you can then run the following code when somebody selects modify report:

cReport=alltrim(cReportname)+'.frx'
IF file(cReport)
** need to put view menu up for adding text etc to report.
PUSH Menu _msysmenu
DO ReotMenu.mpr
MODIFY report (cReport)
POP Menu _msysmenu
ELSE
=dialog('Warning','Can not file file '+alltrim(cReport)+' to modify.','Report File Not Found')
ENDIF


4.) It is not perfect (there are dome options on the view menu which you don't want and I have run into errors if the user does exit the report modify screen by using the "proper" closing method (X box), but all in all seems to work.

Kevin
Kevin Emmrich
www.jkt9000.com
Previous
Reply
Map
View

Click here to load this message in the networking platform