Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't print after @ r,c say...
Message
De
08/12/2000 09:33:56
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00450751
Message ID:
00450769
Vues:
45
>>>Also I think that SET PRINTER ... command has no effect on @ ... SAY. From Foxpro help:
>>>"Output formatted with @ ... SAY isn't routed to the printer when SET PRINTER is set to ON. Use SET DEVICE TO >PRINTER to direct output from @ ... SAY to the printer."
>>
>>Thanks Sergey.
>>
>>If I don't use "set printer to..." how would I specify the printer for @...say... statement? I have two printers that I must use to print out two different tags.
>>
>>Thanks again Sergey.
>

>I guess SET PRINTER TO ... does have effect on @... SAY after all :)

There are two things to distinguish here. SET DEVICE determines where does the output of @Say go - to screen or printer. SET PRINTER determines where are you printing to (set printer to [something]), and are you using the printer at all (set printer on-off). So you'd need a combination of both.

The common thing with the "it prints it out when I exit Fox" means you left the printing device open. To close it, you need to "set printer to", which would close it and reset to default.

So (as far as I remember from 7+ years ago)
set printer to whatever
set printer on
set device to print
@say ... bla bla
set device to screen
set printer off
set printer to
and then it should print it out and be ready for the next print job.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform