Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Preventing Printing from PREVIEW toolbar
Message
De
28/03/2000 20:48:28
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
 
À
28/03/2000 18:53:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00351778
Message ID:
00351840
Vues:
21
Henry,

>I'd like to know if there's a way to prevent users from clicking on the PRINT button when in report preview mode.

The way to do this is to create a resource file that has a print preview toolbar without the printer icon. Then, just before doing a print preview, you SET RESOURCE TO this resource file, and reset the RESOURCE after you're done.

1. View the print preview tool bar.
2. Customize it to remove the printer icon.
3. Exit VFP
4. Copy the foxuser.dbf you just modified (check the time stamp) to some other location.
5. Restart VFP, and remove all the records in the copied foxuser.dbf except the one for the toolbar in question.
6. Include the new resource file (call it something pertinent) in your project, and you don't have to worry about it getting deleted.

Now, when you preview reports...just set resource to this new resource file.

It works well in a project I've used it on.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform