On 8/31/07, subhash medhi <[EMAIL PROTECTED]> wrote:
>
> But for HSSFCell getBoundWorkbook is not a defined method??
>
> subhash
>
>
>  On 8/31/07, Nick Burch <[EMAIL PROTECTED]> wrote:
> >
> > On Thu, 30 Aug 2007, subhashmedhi wrote:
> > > I would like to know hoe to print out the format string of the cell of
> >
> > > an excel file.
> >
> > Take a look at isCellDateFormatted in hssf.usermodel.HSSFDateFormat for
> > an
> > example . That includes the code for fetching the format string for a
> > given HSSFCell:
> >
> >            HSSFCellStyle style = cell.getCellStyle();
> >            int i = style.getDataFormat();
> >            String f = style.getDataFormatString(cell.getBoundWorkbook
> > ());
> >
> > "f" ought to contain what you're after
> >
> > Nick
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

Reply via email to