Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I restrict printing process by setting the print
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01007971
Message ID:
01007990
Vues:
22
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform