Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I restrict printing process by setting the print
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01007971
Message ID:
01007990
Views:
23
This message has been marked as the solution to the initial question of the thread.
Hi,

>How can I restrict printing process by setting the print icon in preview to disabled mode window when total printing page is greater than the permisable page limit.

In VFP 8 and previous versions, the simplest approach is to remove the printer icon from the preview toolbar. Make a copy of your FOXUSER file. Start VFP and ZAP the current FOXUSER file. Bring up the print preview toolbar, hold down the ALT key and drag the print from the toolbar. Quit VFP. In your application you now need to distribute the newly created foxuser.dbf file and activate it right with SET RESOURCE TO just before you display the printer preview. VFP then loads the toolbar definition from your modified foxuser file.

In VFP 9 the print preview is a VFP form. All you need is to set the Enabled property of the button to .F.
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform