Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dot Matrix printer with Condensed font
Message
From
08/08/1999 21:40:49
 
 
To
07/08/1999 14:35:49
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00250520
Message ID:
00251329
Views:
29
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform