Read data by rows(horizontal way)
See original GitHub issueHey,
I just started to use the library from the base example:
using (var stream = File.Open(filePath, FileMode.Open, FileAccess.Read)) {
using (var reader = ExcelReaderFactory.CreateReader(stream)) {
do {
while (reader.Read()) {
// reader.GetDouble(0);
}
} while (reader.NextResult());
}
}
reader.Read() runs by columns(in vertical way):
Can I read the data by rows?
Issue Analytics
- State:
- Created 6 years ago
- Comments:6
Top Results From Across the Web
3 Ways to Transpose Data Horizontally in Excel
This is a straightforward way to transpose vertical rows into horizontal columns by copying the data in rows and pasting it into columns....
Read more >Transpose (rotate) data from rows to columns or vice versa
Transpose (rotate) data from rows to columns or vice versa · Select the range of data you want to rearrange, including any row...
Read more >How To Paste Horizontal Data Vertically in Excel (Plus Tips)
1. Open Excel and copy vertical rows ... Launch Excel and open the workbook that has your dataset in it. Select the cells...
Read more >Change Horizontal Data to Vertical - Excel TRANSPOSE ...
I want 4 rows and 2 columns. With those cells selected, I type =TRANSPOSE, open bracket, and then the cells from the original...
Read more >Reading horizontal (row-based) data from xlsx files into R ...
Thanks a lot for the effort! I think we found a great way based on type.convert - really a neat little helper function!...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi! Can confirm latest ExcelDataReader parses 2 columns and 9 rows out of test3.xlsx, but the file has data in 3 columns (and 9 rows). Thanks for the sample file and mentioning the origin.
Dimension element in sheet1.xml is:
Looks like the pdfConvertor generates xlsx with a broken dimension element. ExcelDataReader uses this element (if present) to determine the number of columns in the sheet.
In order to fix this in ExcelDataReader, I suspect there is no way around taking the performance hit and always scan the xlsx sheet data once first to find the maximum extents (as for xls).
By the way, it is possible to read it with EPPlus