Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Yet another printer question
Message
 
 
À
07/02/2006 12:31:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01094274
Message ID:
01094412
Vues:
14
Hi Ramil,

Try:
SET PRINTER TO NAME GETPRINTER()
_PADVANCE = "LINEFEEDS"
_PLENGTH = 0
* PRINT JOB HERE
SET PRINTER TO
>It seems that every time VFP sees a SET PRINTER TO command it forces a form feed. And the formfeed occurs every time the program is ran.
>
>>I believe VFP tries to be smart, and sends a Form Feed every time you change printer. Anyway, there is an easy way around this.
>>Set printer to dump.dmp && dumo.dmp is a file
>>Eject && forces a Form feed
>>Set printer to name (cPrinter)
>>Erase dump.dmp
>>
>>>Hi all,
>>>
>>>Why does the printer ejects a page when I send this ESC codes to it? We are using the LQ-570e printer. But even when selecting a laser printer, a form feed still occurs.
>>>
>>>cPrinter = getprinter()
>>>if !empty(cPrinter)
>>>   set printer to name (cPrinter)
>>>   set printer on
>>>   * Change the font to COURIER
>>>   * This line causes the printer to issue a form feed
>>>   ??? chr(27)+chr(107)+'2' && ASCII ESC k n; where n=2 for Courier.
>>>   ? "Hello world"
>>>   set printer off
>>>   set printer to
>>>endif
>>>
Regards,

Mike

"We try to solve the problem by rushing through the design process so that enough time is left at the end to uncover the errors that were made because we rushed through the design process."
- Glenford Myers

If you're going through hell, keep going. - Walt Disney
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform