Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem in directing a report to a specified printer
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01273070
Message ID:
01275764
Vues:
7
First I have a form parameter called cprinter
Then I have a button on the form for changing the printer as follows...

I set a variable to the printer name
cp = getprinter()
Then check for the return...
IF !EMPTY(cp)
thisform.cprinter = cp
Else && set to the default printer
thisform.cprinter = SET("Printer",2)
ENDIF
SET PRINTER TO NAME (thisform.cprinter)
thisform.label2.Caption = thisform.cprinter

HTH
Ron Seidl
Independent Developer
VFP

"I'm playing in life's theater in anticipation of a great cast party!"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform