Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prevent users to print in a preview mode
Message
From
06/07/1999 21:34:01
 
 
To
14/06/1999 11:26:57
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00229460
Message ID:
00238069
Views:
15
>Is there a way to prevent any users to print when they are in the print preview. I would like to be able to disable only the print button in the navigation toolbar. If not, can I disable the toolbar and how do I do that?
>Is there other solutions?



Hi all, there was a thread half yrs ago in here to do this.

The coding is to hide the "Print Preview" toolbar!

So, user need to use keyboard:
Ctrl+Pageup to first page
Pageup to previous page
PageDown to next page
Ctrl+PageDown to Last page


To hide the toolbar, one of the code is to simulate double-click on control box
of toolbar.

For me, I use this code to close it!
PrintJob

If WVisible("Print Preview")  
* if you use Chinese Version, the wording may be different!
   Hide Window "Print Preview"
Endif

KEYBOARD {CTRL+F10}  && Make Full Screen Preview

_pbpage = 1 && start page... and some system setting

Report form myreport preview

EndPrint
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform