ASF Bugzilla – Attachment 3971 Details for
Bug 14910
HSSFRow.getLastCellNum() method returning incorrect value
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
simple java file to reproduce problem
ExcelConverterTest.java (text/plain), 1.36 KB, created by
Nishant
on 2002-11-27 19:53:27 UTC
(
hide
)
Description:
simple java file to reproduce problem
Filename:
MIME Type:
Creator:
Nishant
Created:
2002-11-27 19:53:27 UTC
Size:
1.36 KB
patch
obsolete
>import org.apache.poi.hssf.usermodel.HSSFCell; >import org.apache.poi.hssf.usermodel.HSSFRow; >import org.apache.poi.hssf.usermodel.HSSFSheet; >import org.apache.poi.hssf.usermodel.HSSFWorkbook; >import org.apache.poi.poifs.filesystem.POIFSFileSystem; >import java.io.File; >import java.io.FileOutputStream; >import java.io.FileInputStream; >import java.util.Iterator; >import java.util.ArrayList; > > >public class ExcelConverterTest { > > public ExcelConverterTest () { > } > > public static void main (String [] args) { > String inpFileName = args[0]; > > System.out.println("Started..."); > try { > ExcelConverterTest converter = new ExcelConverterTest(); > > FileInputStream ipStream = new FileInputStream(inpFileName); > POIFSFileSystem fileSystem = new POIFSFileSystem(ipStream); > HSSFWorkbook workBook = new HSSFWorkbook(fileSystem); > HSSFSheet singleSheet = workBook.getSheetAt(0); > > System.out.println("last row = "+singleSheet.getLastRowNum()); > HSSFRow row = singleSheet.getRow(0); > System.out.println("last column = "+row.getLastCellNum()); > > ipStream.close(); > } > catch (Exception e) { > System.out.println("Encountered exception with message - "+e.getMessage()); > } > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 14910
: 3971 |
3972