Comments (26)
Worth mentioning is that LibreOffice handles the files just fine.
from elixlsx.
Hey, thanks for your report.
I can not reproduce this.. generating with the example and open with same version works fine.
Please add your code that generate your excel file to evaluate this.
from elixlsx.
Unfortunately the code is part of a proprietary code base and I cannot freely share it. I'll try to replicate with a minimized version to replicate it!
One thing I did notice was that I set the bg_color to #000000
(black) and fg_color to #FFFFFF
(white) for some of the cells but they end up being colored with a black dots on a white background instead of white text on black. It could be related to this (maybe). Other bg_colors and fg_colors seems to be working in other cells. (All is showing up fine and looking good in LibreOffice).
I'll get back with an example to replicate it as soon as possible!
from elixlsx.
I'll try to replicate with a minimized version to replicate it!
That will help to find the problem, thanks.
One thing I did notice was that I set the bg_color to #000000 (black) and fg_color to #FFFFFF (white) for some of the cells but they end up being colored with a black dots on a white background instead of white text on black.
This bug has already fixed in #20 but is not published on hex.pm yet. This will only cause that the first used background color ended up in black dots.
from elixlsx.
One thing I did notice was that I set the bg_color to #000000 (black) and fg_color to #FFFFFF (white) for some of the cells but they end up being colored with a black dots on a white background instead of white text on black.
This bug has already fixed in #20 but is not published on hex.pm yet. This will only cause that the first used background color ended up in black dots.
Ah, thank you. I'll try to get the version directly from git instead!
from elixlsx.
Ah, thank you. I'll try to get the version directly from git instead!
Unfortunately this breaks things with the bg colors in general and shuffles around the colors and some of them becomes white instead (loses the styling).
I'll provide code to replicate.
from elixlsx.
I found the problem why the cell background colors was breaking and I've created a PR with a fix.
Getting back to the original issue here with broken files needing repairs, I've verified that it is being replicated by using the example file in the repository.
I'm attaching the generated example.xslx
file to this comment.
Most likely this may have something to do with the version of Elixir/OTP I'm running maybe?
Erlang/OTP 19 [erts-8.3] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]
Elixir 1.4.2
from elixlsx.
I unfortunately don't have a mac, so I can't directly debug this. Does this happen with all files generated by the current elixlsx HEAD version? (even empty ones?) If not, can you try to provide a minimal example that causes that warning message?
re @Fabi755's comment about the version not being on hex.pm yet, sorry about that, as soon as we figure out what's happening here i'll update the hex.pm version.
from elixlsx.
Yes, even empty ones are showing the same problem. If you generate a file from the example file in the repository and attach it here I can try to see if I can determine the difference and maybe that will give us some clue what is happening.
from elixlsx.
I have the same issue using 0.1.1.
Here is the file generated by the library
RadioJAZZ.FM - STOART - 4-2017(1).xlsx
that is causing this error:
I also see gray background as dotted.
from elixlsx.
@mspanc I had the same issue and I've submitted a PR with a fix for the dotted background issue some week ago. I believe it has been accepted and merged in HEAD if you switch to that instead of the hex package it should work.
from elixlsx.
Yep, i'll push the fix for the grey background out as soon as we've figured out what's happening with the import error.
Unfortunately, I don't have access to MS office, neither on windows nor on mac.
Does this problem occur with older elixlsx versions as well? Would you mind attaching an empty xlsx file generated by Office for Mac?
from elixlsx.
Here it is
excel for mac 2011
version 14.7.3 (170325)
from elixlsx.
Here's the file I generate:
Reggae Dub - STOART - 4-2017.xlsx
and here's the same file saved by excel for mac after clicking "Open and repair" button:
Reggae Dub - STOART - 4-2017 - repaired.xlsx
from elixlsx.
Looking that the diffs between the files I couldn't really figure out what was going on.
I've created a few files manually using components from an elixir empty file and the one you provided. Can you open them and check if there is one of them that does not show the "needs to be repaired" warning? Cheers
custom-xl-workbook.xlsx
custom-xl-theme-theme1.xlsx
custom-xl-theme-style-contenttype-merged.xlsx
custom-xl-styles.xlsx
custom-xl-sheet.xlsx
custom-xl-contenttypes.xlsx
custom-docprops-core.xlsx
custom-docprops-app.xlsx
from elixlsx.
Only custom-docprops-app.xlsx does not show warning.
from elixlsx.
Ok, weird. I can't see anything obviously wrong with that file (according to http://www.datypic.com/sc/ooxml/t-extended-properties_CT_Properties.html all fields are optional), i'll set up another set of files later this week.
Thanks for testing! :)
from elixlsx.
Hi, can you try again with the attached files?
Thanks!
app-titlesofparts.xlsx
app-headingpairs.xlsx
app-flags.xlsx
app-docsecurity.xlsx
app-appversion.xlsx
app-application.xlsx
from elixlsx.
Only app-appversion.xlsx does not show a warning.
from elixlsx.
I made a mistake in the previous comment and if you read this thread via mail notifications you might see the old version. So I repeat: Only app-appversion.xlsx does not show a warning.
from elixlsx.
Ok, another one ;)
empty2.xlsx
from elixlsx.
Works fine
from elixlsx.
I can also confirm that the last one works in Excel on my Mac without warnings.
from elixlsx.
Can you checkout the current HEAD and see if the problem is resolved?
from elixlsx.
I've verified that it now works with my generated files on Mac!
From my perspective this issue has been resolved! Great work! Thank you!
from elixlsx.
Sweet. Closing this, thanks everyone for the help in figuring this out :)
from elixlsx.
Related Issues (20)
- Strings not working
- Please can we have a way to set cell/range properties without changing the cell text HOT 1
- Is there a way we can add Data Validations for a cell? HOT 2
- Formula FILTERXML could not be evaluated without an acceptance
- 0.4.2 release has an XML module defined globally
- Set cell to integer value
- Need to set filtering enabled on data for a certain header row.
- can not insert string contains "\b" into cell
- Fix typespecs for Elixlsx.write_to and write_to_memory
- Is there a way to add comment to cell?
- How do I make a cell's data type "text"?
- How do you set a formatting of a cell as percentage? HOT 1
- Missing newer release tags HOT 1
- Hyperlink support
- Rich Text
- If I pass nil into column parameter the lib broke HOT 3
- Argument Error on write_to_memory HOT 1
- Add support for Date
- Is it possible to modify existing file with this library? HOT 1
- Formula different sheet cell HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elixlsx.