Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preventing Printing from PREVIEW toolbar
Message
From
28/03/2000 20:48:28
 
 
To
28/03/2000 18:53:44
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00351778
Message ID:
00351840
Views:
20
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform