Free Support Forum - aspose.com

Values throwing an exception?

This isn’t a huge deal as I have already found a work around but on a cell shouln’t the method’s like

IntValue
DateTimeValue
BoolValue
DoubleValue

Return null if there is no data in the cell instead of throwing an exception? Right now I can test to see if the StringValue returns null to see if the cell is empty but it would be nice if I could test my expeceted data types as well (Which would then allow me to protect against bad data as well as empty cells)

Maybe it’s a bad idea? Just a suggestion…

Thanks!

Hi Kluch,

You can use Cell.Type to choose which data return property should be used.