Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
@ say to printer
Message
De
19/04/2003 04:08:23
 
 
À
19/04/2003 01:55:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00779442
Message ID:
00779454
Vues:
9
try this

SET DEVICE TO PRINTER && Send output to printer
SET PRINT ON && starts queuing output for the current printer
DO WHILE NOT EOF( )
@ PROW( )+1,10 SAY 'Company: ' + company
@ PROW( )+1,10 SAY 'Phone: ' + phone
@ PROW( )+1,1 SAY ''
IF PROW( ) > 62
EJECT
ENDIF
SKIP
ENDDO
SET PRINT OFF && Stop queuing output for the current printer
SET PRINT TO &&The queued output is sent to the printer
SET DEVICE TO SCREEN


The set print to command actually send data immediatly to printer. Here is the fox help explain.

When you direct output to a network printer, output prints or collects in a print spooler until a new SET PRINTER command is issued
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform