Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

Created Unassigned: Read Excel [9474]

$
0
0
I am trying to read excel and convert it to DataTable but getting error in first statement itself

var workbook = new XLWorkbook(filePath);

or

var stream = File.Open(filePath, FileMode.Open, FileAccess.Read);
var workbook = new XLWorkbook(stream);

Exception: Value cannot be null. Parameter name: source

Any help?

Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>