-
Notifications
You must be signed in to change notification settings - Fork 255
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
Problem opening file in Excel Viewer #1
Comments
It appears the file can be read in Excel, but it reports (and fix) errors. |
Excel complains about xl/workbook.xml and xl/worksheets/sheet1.xml |
Does this also happen if you open an existing (good) excel file and save it through rubyXL, or only when rubyXL creates a blank file? |
Hi, I've switched to another gem (simple_xlsx_writer) and currently I've not time to debug this problem. I'm sorry, I won't be able to help you with this bug :/ |
This should be fixed in version 1.1.10 |
It looks like I'm having the same issue using version 1.1.10 - opening a valid excel file and writing to it again gives me "Excel found unreadable content in "text1.xlsx". Do you want to remove the contents of this workbook? If you trust the source of this workbook, click Yes" Here's the log output:
Also - my excel file |
I have more information, here's the xml:
And I believe the cause is the self-ending sheetView: I have no idea how to zip my xlsx back up to test - so I'll fiddle a little longer but hopefully this give you some insight to the cause of the issue. |
(Actually I just realised I've misread the tag and that's not the issue - I now have no idea but hope I've given you some ideas) |
I've found the Microsoft OOXML SDK tool to be somewhat helpful in tracking down these errors. http://www.microsoft.com/download/en/details.aspx?id=5124 Give it a shot at validating your file and it might tell you what rubyXL is doing wrong (or give you an unhelpful error message, who knows?). I'll look at your file tomorrow, also. |
Cheers, will investigate! |
I'm not getting any errors from this file. Is this the one you repaired? Also, what version of excel are you using? |
I think I'm experiencing the same issue on Mac, when I do the following:
On opening this I get: And the recovery log says:
The recovered workbook has all the sheets but is missing the sheet names. Not sure what the issue is, using rubyXL 1.2.5 on ruby 1.9.2p290. |
jeffuus, I'm experiencing the same as you. I tried this and it works: I think that the problem is that Worksheet initializer expects the workbook. I've forked the project and l'm going to add a "create_worksheet" method to the Workbook class. |
+1 |
"normalLayout" is indeed invalid value for "view" property. I have fixed this. |
Various changes
merge new changes
Hi,
I've downloaded latest Excel viewer to check if generated file is recognized. It is not. Excel Viewer gives error that the file is incorrect.
File is created using RubyXL::Workbook.new.write 'text.xlsx'
Openoffice and ZohoSheet recognizes file properly.
The text was updated successfully, but these errors were encountered: