Hello All,
How to take condensed print chr(15) from java application?
please help
thanks & regards
Printable View
Hello All,
How to take condensed print chr(15) from java application?
please help
thanks & regards
What is a "condensed print" chr(15)?
Try using a condensed font. Something likedbCode:Font font = whatever.getFont();
Map<TextAttribute, Object> attributes = new HashMap<TextAttribute, Object>();
attributes.put(TextAttribute.WIDTH, TextAttribute.WIDTH_CONDENSED);
font = font.deriveFont(attributes);
whatever.setFont(font);
Hi,
I think you can simply write something like:
And send this to the printer.Code:String condensed = Character.toString((char) 15);
In any case, passing a "condensed font" flag aka CHR(15) to a printer (assuming the printer's about as old as a newbie Java programmer) will only affect character based printing. The Java print API uses raster based printing which couldn't care less about a condensed font being set to the *printer*.
db
so, any idea for this? ..
I need to print in condense mode (chr(15)) to Epson LX300