Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printer Control
Message
 
To
29/10/1997 14:17:43
Carmen Gassi
Perseus Software Systems
Oakville, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Title:
Miscellaneous
Thread ID:
00057242
Message ID:
00057391
Views:
36
>>>I am trying to gain control over the printer for the purpose of cheque printing on a laser ( probably an HP or compatible ) . I have been unable to control _plineno through the report writer and so I have had to resort to hand coding the report. This is less than attractive for although I have the cheques sort of printing properly, I am getting some escape codes printing as well. If anyone has any suggestions I would appreciate your help.
>>>
>>>Thanks
>>>Carmen
>>
>>Carmen,
>> Why not use the Report Writer for this?? It is a lot simpler, and more maintainable this way.. Sending escape sequences, try using ??? and the sequences.. This will force FP to send them directly to the printer..
>>
>>Thanx!
>>
>>Tony Miller
>>Vancouver,Wa
>Tony
>I have tried to use the report writer, and the problem I encounter is that after the cheque advise is printed ( this consists of data groupings based on an index and then subtotals ), I can't get the printer to advance to that area of the report where the actual cheque itself will be printed. This is approximately line 44 of an 8.5 X 11 page. I would love to use the report writer to keep everything consistent in the application. Maybe I'm missing something obvious, but I can't seem to control _plineno. After the advise for the cheque, the cheque info itself is printed immediately following regardless of which line the printer is at. I would have to ensure that the printer starts printing the actual cheque info. ( the Pay to stuff that is actually on the cheque ) at the same line number for each cheque, because these are being printed on pre-printed cheques with the bank number already encoded on them. Any ideas?

Hi Carmen,
I once did an app that printed checks in this fashion. The way I got the Report Writer to do it was like this. I had account balance info fields in a Title Band, I had a blank Detail Band set to the width of space needed between Account info at top and actual check at the bottom of page (this took alot of fiddling with to get right), I set the Constant Band Height on for the Detail Band, then put the fields for the actual Check in a Summary Band. Granted I printed alot of test checks before I got it all laid out right, but I didnt have to mess with _plineno or any other report form variables this way. HTH
Roxanne M. Seibert
Independent Consultant, VFP MCP

Code Monkey Like Fritos
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform