Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement