Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
@ say to printer
Message
From
19/04/2003 04:08:23
 
 
To
19/04/2003 01:55:23
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00779442
Message ID:
00779454
Views:
10
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform