-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails if table has an empty cell #18
Comments
The way to "send" a file is put it on Dropbox or some other public forum, or if you do not want to do that you can email it to me directly at dhoerl at mac dot com |
The problem is password protection. Data is all unavailable in this case, nothing the library can do. These are the relevant records: libxls : BOF Not Processed in parseWoorkBook(): BOF=0x0012 size=2libxls : BOF Not Processed in parseWoorkBook(): BOF=0x0013 size=2libxls : BOF Not Processed in parseWoorkBook(): BOF=0x01AF size=2libxls : BOF |
My file doesn't appear to be password protected. Can you open the file Kind Regards, David Gill IntegrityWare, Inc.(http://www.IntegrityWare.com) On 1/13/2015 3:09 PM, David Hoerl wrote:
|
Hi David, Also, how am I able to read the first 2 rows (but not the 3rd) if it is Could it be flagging the table as protected accidentally? nPowerLogo.gif IwLogo.gif David Gill IntegrityWare, Inc.(http://www.IntegrityWare.com) On 1/13/2015 3:09 PM, David Hoerl wrote:
|
Really, the libxls library should just abort when it sees these protection flags. I don't know the ins and outs of how Excel implements these, but this issue of passwords and protections blocking the library from reading a file are longstanding. Its sort of funny, but I don't have access to a copy of Excel - mine all ran on PowerPC Macs. When I tried to open your file with Numbers (the apple spreadsheet), it failed. Normally it opens xls files without problem. |
Hi David, It's strange because there don't seem to be any protections set on the nPowerLogo.gif IwLogo.gif David Gill IntegrityWare, Inc.(http://www.IntegrityWare.com) On 1/14/2015 6:37 AM, David Hoerl wrote:
|
Hi David, So I tried something interesting. I simply put the word "junk" into Could you try with the attached file? Can you open this one? nPowerLogo.gif IwLogo.gif David Gill IntegrityWare, Inc.(http://www.IntegrityWare.com) On 1/14/2015 6:37 AM, David Hoerl wrote:
|
There was no image attached to your post. What cell did you add junk into - row 3 column 1? The root issue here is libels's ability to decode the spreadsheet, not the wrapper ObjectiveC framework. I am testing using that and its where the strings seem to disappear. It must have something to do with the shared string table... The library has been shown to work with lots of empty cells - you can do a small test yourself of adding a few strings strewn in random cells. |
Hi David, It wasn't an image, it was just a file. I am attaching it again, but I I put "junk" into cell 3 B (it is the first one of the "table"). nPowerLogo.gif IwLogo.gif David Gill IntegrityWare, Inc.(http://www.IntegrityWare.com) On 1/15/2015 7:43 AM, David Hoerl wrote:
|
If an Excel file has a table with any empty cells, DHXlsReader will stop reading and return end of file (it won't read any subsequent rows / columns in the table or anything else in the file). I can submit an example Excel file if someone can explain how to attach a file to an issue submission (it seems to only allow an image). I have attached an image of a file that fails. It will stop reading after encountering in blank cell in row 3 column 1.

The text was updated successfully, but these errors were encountered: