| Author: Anil Kumar Pandey 02 Nov 2009 | Member Level: Diamond | Rating:  Points: 2 |
hi,
you can use the Microsoft 12.0 object library for xls and xlsx, and in the code change this as
if (Path.GetExtension(FileName) == ".xls") || Path.GetExtension(FileName) == ".xlsx") { }
Thanks & Regards Anil Kumar Pandey
|