![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Goo'day, I really haven't got the inclination to spend however much time it might take (the pubs are now open about 20 hours per day <g>...), so..... Does anybody have any simple method of right-justifying amounts when the PCL font is "proportional", [snip] Or, is there some way we can position (ESC:'*p9x9Y') at the right-justification point and "print to the left"? I'm still to try "Print Direction" (ESC:'&a99P') to try 180 degree and printing the numbers from the left....... There *must* be something simple.... but I'm blowed if I can find it..... TIA Regards, Bruce Nichol Talon Computer Services ALBURY NSW Australia http://www.taloncs.com.au If it ain't broke, fix it until it is.... |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Bruce, A few years ago I had to set up some routines to print documents in proportional font - so I measured the width of all printable characters in Times Roman, CG Times and Univers from 8pt to 16pt - all measured in 1/300th of an inch. I'd be happy to send you a table of the values if this will help. Regards, Geoff |
#5
| |||
| |||
|
|
Bruce; The easiest way we came up with was to start at the right hand side (using the position code) and then print the number "backwards" using the backspace command. So print the right most digit, backspace 2, print the next right most digit backspace 2 etc. It takes some getting used to trying to read the PCL code if you need to "debug" it - but it works reasonably well. |
|
The biggest problems are the decimals and commas. The had to be handled a little differently to look right. I can't remember exactly - we through this into a subroutine and I haven't looked at it in years. I think you either had to add an extra backspace or remove one?? hth Colin Alfke |
|
"Bruce Nichol" wrote ... Goo'day, I really haven't got the inclination to spend however much time it might take (the pubs are now open about 20 hours per day <g>...), so..... Does anybody have any simple method of right-justifying amounts when the PCL font is "proportional", |
#6
| |||
| |||
|
|
Bruce; The easiest way we came up with was to start at the right hand side (using the position code) and then print the number "backwards" using the backspace command. So print the right most digit, backspace 2, print the next right most digit backspace 2 etc. |
#7
| |||
| |||
|
|
My goodness people, if this is the way we use printers, we deserve to go extinct. Get some real printing software for $29.95 and send it data - don't generate raw PCL from a DBMS - or at least don't go this far with it. I haven't seen backspacing like this since ASCII art was hot back in the 70's. Anyone else remember the wall-sized images generated on line printers or with daisy wheels? Mr Spock, Mona Lisa, USS Enterprise, Moon map...? T "Colin Alfke" <administrator (AT) localhost (DOT) invalid> wrote: Bruce; The easiest way we came up with was to start at the right hand side (using the position code) and then print the number "backwards" using the backspace command. So print the right most digit, backspace 2, print the next right most digit backspace 2 etc. |
#8
| |||
| |||
|
|
I printed Snoopy giving the Red Baron the finger back in 1973. I thought the idea of proportional font was that all the letter were the same width. Why doesn't R0,#12 work? Mark "Tony Gravagno" <g6q3x9lu53001 (AT) sneakemail (DOT) com.invalid> wrote in message news:hpjkc15epvmrtnfef9toqsif10vc99682p (AT) 4ax (DOT) com... My goodness people, if this is the way we use printers, we deserve to go extinct. Get some real printing software for $29.95 and send it data - don't generate raw PCL from a DBMS - or at least don't go this far with it. I haven't seen backspacing like this since ASCII art was hot back in the 70's. Anyone else remember the wall-sized images generated on line printers or with daisy wheels? Mr Spock, Mona Lisa, USS Enterprise, Moon map...? T "Colin Alfke" <administrator (AT) localhost (DOT) invalid> wrote: Bruce; The easiest way we came up with was to start at the right hand side (using the position code) and then print the number "backwards" using the backspace command. So print the right most digit, backspace 2, print the next right most digit backspace 2 etc. |
#9
| |||
| |||
|
|
Does anybody have any simple method of right-justifying amounts when the PCL font is "proportional"... |
#10
| |||
| |||
|
|
My goodness people, if this is the way we use printers, we deserve to go extinct. Get some real printing software for $29.95 and send it data - don't generate raw PCL from a DBMS - or at least don't go this far with it. I haven't seen backspacing like this since ASCII art was hot back in the 70's. Anyone else remember the wall-sized images generated on line printers or with daisy wheels? Mr Spock, Mona Lisa, USS Enterprise, Moon map...? T |
![]() |
| Thread Tools | |
| Display Modes | |
| |