Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dot Matrix printer with Condensed font
Message
De
11/08/1999 20:59:30
 
 
À
08/08/1999 21:40:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00250520
Message ID:
00252810
Vues:
28
>>>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
>
>Rob, Thanks alot for your help. After a couple more hours playing around with this problem I decided to chuck it in. Printing on the dot matrix was too much effort so we are now sending the report to the laser printer. The .FRX file took about 30 minutes to create and works like a charm.
>
>Peter

Hi Peter:

Sorry my other ideas didn't pan out. Glad you got it going with an FRX. Its a lot easier for future mods - visually. You know, you could still point to a dot-matrix printer if that's what your user wants -- just that you can do more with the laser and it looks better and prints faster and quieter. BTW: If you ever need to use a different printer for the FRX, be sure to clear the printer specific info out of it. There have been several recent threads on this, and you will do well to heed them all.

Good luck.

Rob
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform