Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disable print button in Print Preview toolbar?
Message
From
10/03/1999 12:04:29
 
 
To
10/03/1999 08:13:42
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00195771
Message ID:
00195910
Views:
16
Uri-
This is a copy of a post I made on the 3rd on this exact same question. I found it by searching on "remove print preview"

******
It is possible. I assume this is for a client.

1. Start with a new foxuser.dbf (easiest way IMO is to delete the existing one.)
2. Start VFP
3. Chose menu option Toolbars\customize and customize the print preview toolbar by removing the print button.
4. Exit VFP and rename your new Foxuser (I use PREVTBAR.DBF)
5. Add it as an included free table in your project.
6. Now, in your printing routine you can SET RESOURCE to the user table with the customized toolbar. Here's my code:
IF FILE( 'prevtbar.dbf' )
LOCAL lcR
lcR = SET( 'RESOURCE' )
SET RESOURCE TO prevtbar
REPORT FORM (tcRptName) PREVIEW
= SET('RESOURCE',lcR)
ELSE
REPORT FORM (tcRptName) PREVIEW
ENDIF
POP menu _msysmenu


BTW, after all the years of wanting the printer icon on that toolbar, I was just broken hearted that the client wanted it removed. :-(

>Is it possible to disable or remove the "Print" icon from the preview toolbar in Fox 5?
*****

>Is there any way to disable "Print" button (the one with printer drawing on it) in the "Print Preview" toolbar?
Previous
Reply
Map
View

Click here to load this message in the networking platform