String address = new org.apache.poi.ss.util.CellRangeAddress(firstRow, lastRow, firstCol, lastCol).formatAsString();
Yegor On Thu, Sep 1, 2011 at 2:55 PM, dpront <[email protected]> wrote: > Hi, > > Is there a built-in functionality/method on Apache POI that can display > the current Cell Range? Actually I'm already starting to write this > functionality within my code, I just wanna ask if this is already > implemented. > > For example: > > InputStream inp = new FileInputStream(inputFile); > Workbook wb = WorkbookFactory.create(inp); > > Sheet s = wb.getSheet(0); > Row r = s.getRow(0); > Cell c = r.getCell(0); > > And now, since I'm at Row 0 and Cell 0, when I get its Cell Range or Cell > Address (not sure about the term), the result would be "A1". > > Thanks. > Gerard > > -- > View this message in context: > http://apache-poi.1045710.n5.nabble.com/cell-current-Range-tp4757872p4757872.html > Sent from the POI - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
