Hello,
I have been using Apache POI, and I faced a situation where I could use reflection to determine which datatype a cell should have based on the datatype of the value that is going to contain in Excel. When I tried to use, for instance, anObject.getClass().cast(), the POI library would show an error at compile time, while this code is certainly valid at runtime. I attached the two classes containing the necessary contributions (src/java/org.apache.poi.ss.usermodel.Cell.java and src/ooxml/java/org.apache.poi.xssf.usermodel.XSSFCell.java). I can commit them on SVN if this is suitable. For more of this, please take a look at this: Java Dynamic Casting in Apache POI | | | | | | | | | | | Java Dynamic Casting in Apache POII am using Apache POI to yield Excel reports, and since I would like each column to be compatible with its datatype (date, number, integer ...), I made up a static ... | | | | View on stackoverflow.com | Preview by Yahoo | | | | | Merci, Mohamed Ennahdi El Idrissi
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
