Font.getCharWidth() and Font.getHeight() should help On 5/13/05, Armageddon <[EMAIL PROTECTED]> wrote: > > hey Abhi > > can calculate height of string/cell but how to find width of string? > there is no constant value i can multiply with the string length to > get the width? > > though m not facing any prob as such as of now, but just curious to > know if its possible! > > On 5/13/05, Abhi <[EMAIL PROTECTED]> wrote: > > 1st: use HSSFCellStyle.setWrapText() > > 2nd: I dont think there is any method in UserModel for this. But you can > do > > this by writing your own method which sets the font size of the cell by > > calculating the width of the string and the cell. > > > > hope this helps > > On 5/13/05, yama <[EMAIL PROTECTED]> wrote: > > > > > > Hi, all > > > > > > I'd like to controll character in a cell. > > > > > > > http://homepage1.nifty.com/kenzo30/ex_kisonyu/images/zu_syosiki_haiti.gif > > > (excell format setting in Japanese) > > > > > > 1st:by break, express all char > > > ("W_" short cut in pic) > > > > > > 2nd:by reduction, express all char > > > ("K_" short cut in pic) > > > > > > anybody know? > > > > > > regards > > > yama > > > > > > __________________________________ > > > Do You Yahoo!? > > > Upgrade Your Life > > > http://bb.yahoo.co.jp/ > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > Mailing List: http://jakarta.apache.org/site/mail2.html#poi > > > The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/ > > > > > > > > > > -- > > Abhi > > trin-trin: 9810760474 > > ************************************************ > > Love is the desire to do good to others > > > > GREATEST is the one who LOVES all creations of GOD > > > > > > -- > "Do U have it in u?" >
-- Abhi trin-trin: 9810760474 ************************************************ Love is the desire to do good to others GREATEST is the one who LOVES all creations of GOD
