Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot get report to print in draft mode from .PRG file
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00684089
Message ID:
00684589
Vues:
23
Try using ??? instead of @say to bypass the printer driver and send the codes directly to the printer port.

HTH,

Enmanuel


>Hi,
>
>Have you tried using a generic text printer driver?
>
>HTH,
>Arriyel
>
>>I am converting an old Foxpro 2.5 DOS program into VFP (version 6.0). The old DOS program contains many reports which are generated via separate PRG files with @SAY ... for output. In the interest of minimizing the work involved in implementing this conversion, I am attempting to simply use these existing PRG files rather than rewrite them all in the report writing utility. Everything works for the most part, but there is one aggravating problem that I am unable to figure out: when the reports print, they force the font to ARIAL. I have nothing in the code that directs font output whatsoever. I am beginning to think that this is a compatibility issue between FVP and DOS. I'm developing in a Windows 95 environment.
>>
>>Is there some sort of compatibility mode command which will allow the printer to print in its default draft mode. The printer in question is an EPSON LQ-570+ that I am attempting to print through. If I direct the output to a laser printer, however, the same thing happens. In the DOS version, the font simply defaults to courier in the laser.
>>
>>Some of these reports print to preformed forms, so retaining the original draft mode is necessary for reasons other than simple ease of conversion.
>>
>>I've even tried sending printer codes to the printer, but they are ignored. I have tried issuing a reset command prior to print, also without any luck. I have tried sending NO printer codes - same thing. Nothing I've tried seems to work - the program simply decides somewhere to force the output to ARIAL (or a font similar in appearance). And, yes, I've checked the printer itself to make sure that the font isn't set on the printer itself - it's not.
>>
>>Any suggestion will be, as always, deeply appreciate.
>>
>>TIA
>>
>>Richard Bates
>>Denver, CO
I'm a mixture of Albert Einstein and Arnold Schwarzenegger. The only trouble is that I got Einstein's body and Schwarzenegger's brain
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform