I'm using npoi 2.0.6.0 with .net 4.5.
I'm trying to load and parse a spreadsheet that is publicly available on the internet on the web page http://www.directedge.com/MarketData/SecuritiesTraded.aspx .
The file is the "EDGA Securities Traded" - I've attached the original spreadsheet and another spreadsheet that indicates the missing rows. This spreadsheet is liable to change every day, but the direct download link is http://www.directedge.com/Portals/0/02Market%20Data/Securities%20Traded/EDGA%20-%20Tradable%20Symbols.xlsx
I load the spreadsheet like this:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url); // Same as displayed above
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
using (Stream ResponseStream = response.GetResponseStream())
{
IWorkbook workbook = new XSSFWorkbook(OPCPackage.Open(ResponseStream));
Then, I iterate through the rows:
for (int RowNumber = sheet.FirstRowNum; RowNumber <= sheet.LastRowNum; RowNumber++)
{
This is where the weirdness starts. When the attached spreadsheet is loaded into Excel, the first row is 1 and the last row is 8156 which is 8155 rows. However, in NPOI, the FirstRowNum=0 and the LastRowNum=8147 which is 8148 rows. So seven rows are missing. I've determined the missing rows are:
RowNum Column A Column B
[3393] HIH HELIOS HIGH INCOME FUND INC
[3421] HMH HELIOS MULTI-SECTOR HI INCM FD
[3480] HSA HELIOS STRATEGIC INCOME FUND
[4542] MCLB MICROLIN BIO, INC
[4543] MCLBW MICROLIN BIO, INC
[4898] MTY CITIGROUP FDG INC 8/11/14
[4909] MUK CITIGROUP FDG INC 8/11/14
Can someone tell me why they appear to be missing?
Comments: ** Comment from web user: sevzas **
I'm trying to load and parse a spreadsheet that is publicly available on the internet on the web page http://www.directedge.com/MarketData/SecuritiesTraded.aspx .
The file is the "EDGA Securities Traded" - I've attached the original spreadsheet and another spreadsheet that indicates the missing rows. This spreadsheet is liable to change every day, but the direct download link is http://www.directedge.com/Portals/0/02Market%20Data/Securities%20Traded/EDGA%20-%20Tradable%20Symbols.xlsx
I load the spreadsheet like this:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(Url); // Same as displayed above
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
using (Stream ResponseStream = response.GetResponseStream())
{
IWorkbook workbook = new XSSFWorkbook(OPCPackage.Open(ResponseStream));
Then, I iterate through the rows:
for (int RowNumber = sheet.FirstRowNum; RowNumber <= sheet.LastRowNum; RowNumber++)
{
This is where the weirdness starts. When the attached spreadsheet is loaded into Excel, the first row is 1 and the last row is 8156 which is 8155 rows. However, in NPOI, the FirstRowNum=0 and the LastRowNum=8147 which is 8148 rows. So seven rows are missing. I've determined the missing rows are:
RowNum Column A Column B
[3393] HIH HELIOS HIGH INCOME FUND INC
[3421] HMH HELIOS MULTI-SECTOR HI INCM FD
[3480] HSA HELIOS STRATEGIC INCOME FUND
[4542] MCLB MICROLIN BIO, INC
[4543] MCLBW MICROLIN BIO, INC
[4898] MTY CITIGROUP FDG INC 8/11/14
[4909] MUK CITIGROUP FDG INC 8/11/14
Can someone tell me why they appear to be missing?
Comments: ** Comment from web user: sevzas **
attached original file