Quantcast
Channel: Excel Data Reader - Read Excel files in .NET
Viewing all articles
Browse latest Browse all 448

New Post: Read column values with Excel Data Reader not working (MVC)

$
0
0
Hi krillezzz
I have just been digging about in your code. I think the issue is that you set data to be a single row
                DataRow data = result.Tables[0].Rows[i];
                System.Diagnostics.Debug.Write(data.Table.Rows[i]["Amortization"]);
Then access a Table within that row and rows within that table. I have tried
                    string val = data[1].ToString();
and that works.
                   string nval = data["Title"].ToString();
Also works

Viewing all articles
Browse latest Browse all 448

Latest Images

Trending Articles



Latest Images

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