Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Directing output to printer using @...Say
Message
De
27/04/1999 14:20:42
 
 
À
27/04/1999 14:14:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00212617
Message ID:
00212627
Vues:
22
>I have an old dbase report that I want to reuse instead of using an .frx. This report prints to a pre-formatted form on a dot-matrix. I've been fighting with the .frx version for weeks and decided it's time to get out the old dbase code.
>
>My question is, how do you redirect output to the printer in VFP? I'm using SET PRINT ON and SET DEVICE TO PRINT and then issue my @...SAY commands. Nothing happens but when I issue SET PRINTER TO DEFAULT the output that has apparently been queued up suddenly dumps to the printer. FYI, I'm using a generic/text only printer driver with an Okidata ML320 if that helps.


Because of the Windows environment vs DOS, you need to put a "Set Printer To" command at the end of the report to flush the report to the windows print spooler, kind of like an eject.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform