Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Giving report design toolbar at runtime
Message
 
À
04/05/2001 02:40:57
Rakesh Pahwa
Symco Software P. Ltd.
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00503362
Message ID:
00503418
Vues:
19
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform