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
SetHyperlink in the second sheet causing file format errors. #14
Comments
I checked your demo file and see the reason. Did you create that file using library? Because I see some Excel things. I need to know how to repeat issue - i tried to create file using library and could add hyperlinks in both sheets |
btw, I added conditional formatting feature. Looks like everything is good, but maybe more validation and other advanced settings required. You can check it this branch: https://github.com/plandem/xlsx/tree/feature/conditional P.S.: Sadly, but I did small api change that not compatible with previous version - |
The file demo.xlsx works fine with WPS, but not fine with MS Office. |
Would be cool, because I don't have any issues with links at different sheets. So I need steps to reproduce - code. |
|
ok, I can reproduce with that test file, but I have a question - how did you get that original file? Because I see messed sheet's id first time - did you created this file(original) using library? |
normally |
ok, I found a bug. It was actually very critical bug, but luckily that functionality added only with hyperlinks feature. Right now, I pushed fix into |
btw, what to do you think about overall usage - is it friendly? I want to make library that will be easy to use and possible to rely on IDEs code completion feature - no need to look for xlsx documentation, IDE will suggest possible value. Right now I'm double minds about b) dedicated packages and better readability as result, broken backward compatibility: I like later version more, but in that case more imports and broken backward compatibility |
I refactored packages as, you can check here: but as I said no backward compatibility, although I like that way more. I will keep it as is right now, need to sleep more with that way. |
I used |
I tried both too and while I liked tealeg at first sight, it could not process well formatted files - always corrupted after saving and in my case it was not generated xlsx, but used by clients every day as dumb "database" replacement with notes, formatting and etc. excelize was better in some cases, but also could not process and I had to patch non stop that library and at some point I caught myself that I spend too much time to dive into very ugly and bad spagetti code(at least that time, not sure right now), so I dropped that idea and thats how that lib was born. P.S.: I like later version more and like it waaaay better, so many areas to simplify even right now - improve styles/conditionals much more. Will try to finish it this week. Btw, conditional finished - full support right now, but probably need more decent validation for rules, because it's easy to create invalid settings. |
ok, so after trying to use conditional, I caught myself that I still need to check XLSX documentation how to set proper value and that not what I want from library. So I started to refactor in more human friendly way, but right now its very limited. Usage will be like this:
|
you can check current version at https://github.com/plandem/xlsx/tree/refactor-packages |
I updated the |
yes, due to breaking backward compatibility, I had to release as 1.0.0 both packages. ooxml has version too right now |
ok, should work fine right now, although I removed 1.0.0 from xlsx |
demo.xlsx
SetHyperlink in the first sheet works fine, but not fine in the second sheet.
Open with MS Office 2016:
The text was updated successfully, but these errors were encountered: