Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preview Toolbar
Message
From
04/03/1999 18:03:58
 
 
To
03/03/1999 17:46:28
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
00193774
Message ID:
00194249
Views:
18
Thanks, it works like a charm. The Print icon is very nice to have, but, you're right, this is for a client on a dedicated server and we're charging for reports. So it wasn't the client who wanted it removed, quite the opposite. Anyway, I didn't see any way to log a printjob fired by the preview bar without going through the API. And who has time to wrestle with that?

Thanks again. This is the first time I've used universalthread and it's pretty neat.

>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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform