Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Box characters for konica printing machines 1

Status
Not open for further replies.

Jimbobbie

Instructor
Jul 16, 2004
3
ZA
I need the characters to print boxes in Konica machines.if any one can help please.
 
If it is HP compatible and recognizes PCL 5 or below, you
can use (in basic lang)
print #1,chr$(27);"(10U" 'PC-8 character with box char.
print #1,chr$(27);"(s0p10h12v0s0b0T" '10CPI typeface up to u
example characters
print #1,chr$(196) 'approx equiv to -
print #1,chr$(205) 'approx equiv to =
etc.

 
Thanks buff1

my next issue is that my horisontal double lines prints
as a solid lines like i want it, but my vertical double lines have spaces like the following ===. Any ideas on how to rectify it?

Thanks in advance
 
If you want to draw lines using 'box draw' characters from a font, you will have to use an appropriate combination of font typeface, font size and line spacing in order to prevent gaps between vertically adjacent characters.

But changing the line spacing might cause problems with other text if this is contained within the same set of sequences.

Instead of using 'box draw' characters from a font, you could use the PCL 'Rectangular Area Fill Graphics' sequences. For example:
Code:
<Esc>&l0O         Orientation: Portrait
<Esc>&u600D       Unit-of-Measure (PCL units per inch)
<Esc>&a0L         Left Margin (columns)
<Esc>&l0E         Top Margin (lines)
<Esc>*p218x       Cursor Position (PCL units): Horizontal
       300Y       Cursor Position (PCL units): Vertical
<Esc>*c4320a      Rectangle Size (PCL units): Horizontal
       3b         Rectangle Size (PCL units): Vertical
       0P         Fill Rectangular Area: Solid Area
<Esc>*c3a         Rectangle Size (PCL units): Horizontal
       6360b      Rectangle Size (PCL units): Vertical
       0P         Fill Rectangular Area: Solid Area
<Esc>*p218x       Cursor Position (PCL units): Horizontal
       6660Y      Cursor Position (PCL units): Vertical
<Esc>*c4323a      Rectangle Size (PCL units): Horizontal
       3b         Rectangle Size (PCL units): Vertical
       0P         Fill Rectangular Area: Solid Area
<Esc>*p4538x      Cursor Position (PCL units): Horizontal
       300Y       Cursor Position (PCL units): Vertical
<Esc>*c3a         Rectangle Size (PCL units): Horizontal
       6360b      Rectangle Size (PCL units): Vertical
       0P         Fill Rectangular Area: Solid Area
<Esc>*p218x       Cursor Position (PCL units): Horizontal
       300Y       Cursor Position (PCL units): Vertical
<Esc>*c20G        Assign Pattern ID
<Esc>*c4320a      Rectangle Size (PCL units): Horizontal
       6360b      Rectangle Size (PCL units): Vertical
       2P         Fill Rectangular Area: Shading
will draw a (large) box, with shading fill, on a Portrait page.
 
You'll have to make sure you are using fixed spacing.
10CPI should work but you could increase it to 12 CPI if
you need to.

Ec(s0p10h12v0s0b0T
0p means fixed pitch, 0b medium weight, 0T line printer
10h = 10CPI use 12v with 10h.

12 cpi would be like
Ec(s0p12h10v...

16.66 cpi woult be
Ec(s0p16.66h8.5v...

These are the three most common fixed cpi used for reports.

 
There is no 10pitch or 12pitch lineprinter font. FYI...

The problem is that at 10pitch and 6lpi, a typical setup, the "|" characters are simply not tall enough to connect.
You have 3 choices.

1. Tighten up the linespacing.
2. Somehow double print those characters with a cursor move.
3. As Dan's Dad suggested, use PCL graphic commands to draw the box.

This wasn't a problem with the bitmap Courier fonts on the LJ3. But the scalable fonts with the LJ4 and later do not connect at 10cpi or greater at 6 lpi.

I think you will find that it works OK at 12cpi and 8 lpi.

Boxes drawn with PCL-HP-GL/2 commands are MUCH more flexible than those from line draw characters. Better looking too.





Jim Asman
jlasman@telus.net
 
Another possibility would be to use the Tax Line Draw
(0B
if you are using a Laserjet, you could upload it to the
printer. That might work better than box characters at (10U

Also using 3b or 4b weight might help at 6lpi.

I use the Ec*c statements to draw lots of lines too.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top