I always do a
set printer to "printme.prt"
set print on
then commands with ?'s and ??'s and some of the things printed are formatting code, then
set print off
set printer to
copy file printme.prt to lpt1:
This is a lot more work than the report designer, but it is a lot more flexible when you are doing complex reports. Of course, you are assuming the printer language of the printer...if you are writing a program that is going to be used with different types of printers, your workload is increased...
As far as the ESC codes for that particular printer, sorry can't help you.
Good luck,
Joe
>Huh? This is a receipt printer. It accepts whatever VFP will send to it. Are you suggesting something like:
>set textmerge on
>\ <<chr(27)+....>>ACME School for Widget Makers
>scan
>\ <<chr(##)+....>>table.field
>endscan
>set textmerge off
>\
>
>What escape codes would you use to specify *Courier New*?
>
>>This should be in your printer's documentation...
>>
>>ESC codes, printer control codes, something like that....
>>
>>You send these codes to the printer and they will format the output.
>>
>>Joe
>>
>>>Now that I have to hand-code a receipt to a receipt printer, I am resorting to TextMerge. Searching through the VFP help, I see no way to set a font [e.g., "Courier New"], or a style [e.g., "B"].
>>>
>>>Where can I find how to format (centering, etc.) individual lines, set a default font, font size, font style, etc.?
>>>
>>>TIA!
Joseph C. Kempel
Systems Analyst/Programmer
JNC