Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dot Matrix printer with Condensed font
Message
De
07/08/1999 14:35:49
 
 
À
05/08/1999 21:32:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00250520
Message ID:
00251124
Vues:
36
>I am converting some reports from an old DOS Clipper app to VFP 6.0. They print on a dot matrix in a mixture of draft 10cpi and condensed mode.
>
>The reports were created procedurally in Clipper so to save time I am just copying the code with minimal changes into the click event of a print button. My problem is this:
>
>One of the reports uses 10cpi and condensed mode on the same line of the report. Under VFP I am getting different results with sometimes the Condensed mode resetting itself before it is supposed to and vice versa with the draft 10cpi. Any ideas?
>
>TIA, Peter Renton

Hi Peter:

I suspect you are running into the usual 'windows takes control of your entire existence' problem... It is virtually impossible to send output directly to the printer using the windows printer drivers. If you really don't want to convert your hard-coded reports to FRXs, you might try the following: Direct your output to a text file (with the embedded printer control codes) and then send it directly out the printer port using either Ed Rauh's Copy_File() API (see FAQ under 'sending output directly to a printer' (or something like that), or using the RAWPRINT.FLL or RAWPRINT.VCX found in the Files section. These all bypass Windows to just squirt your stuff directly to the printer port, and are really easy to use. If your output is not exactly 8-1/2 x 11 inch pages, you will probably need to do printer setup on the dot matrix printer icon to use a custom page size as well.

For more info, there have been a number of recent threads in the last couple of months on this sort of problem. Good Luck.

HTH

Rob
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform