Code Monkey home page Code Monkey logo

Comments (14)

plandem avatar plandem commented on May 12, 2024

hmmm....it was supposed that 'conditional' were fixed already in prev hotfix. Have you tried last fixes? Because I compared files that you attached and conditional as was in original

from xlsx.

erdian718 avatar erdian718 commented on May 12, 2024

I've updated the code. I'm sure there's another BUG. My English is not very good. Please run my code, pay attention to the NOTE section. Comment or uncomment, there are differences.

from xlsx.

plandem avatar plandem commented on May 12, 2024

Hmm, I will check again, but I compared attached files and conditional formatting info is same in both files, need to find what is difference

from xlsx.

plandem avatar plandem commented on May 12, 2024

excel

Even excel show both files same

from xlsx.

erdian718 avatar erdian718 commented on May 12, 2024

I used MS Office to open test.xlsx and out.xlsx, they are exactly the same. However, I used WPS to open the two files, they are differently, as shown in the screenshot. If column iterations are not performed, they will also be the same in WPS.
test
out

from xlsx.

plandem avatar plandem commented on May 12, 2024

I checked files again and can't see any difference :( All changes are valid, e.g. instead of "1" - "true" for boolean types. That the only differences :(

I can try to edit xlsx and replace manually "true" with "1" and check if styles will work in your program.

from xlsx.

plandem avatar plandem commented on May 12, 2024

https://www.w3.org/TR/xmlschema-2/#boolean

both should work. But as I said, its the only difference that I could find :(

from xlsx.

plandem avatar plandem commented on May 12, 2024

I checked in Open Office (https://www.openoffice.org/download/) and in Libre Office (https://www.libreoffice.org/), works fine :(

from xlsx.

erdian718 avatar erdian718 commented on May 12, 2024

It looks like it's only has problems with WPS. I'll make a careful comparison after the festival. Please keep the issue open.

from xlsx.

plandem avatar plandem commented on May 12, 2024

I finished "hyperlinks" branch that turned into more than one feature and had deep changes eventually. now it's official release 1.0.0

from xlsx.

erdian718 avatar erdian718 commented on May 12, 2024

I found the difference:

xl\styles.xml: <dxfs count="3">

test.xlsx has count attribute, but out.xlsx not. If add the count attribute in out.xlsx, it will work fine.

from xlsx.

plandem avatar plandem commented on May 12, 2024

really? It's weird, because it's optional attribute by standard. I afraid that WPS looks for same attribute at other collections too

Ok, I will add that attribute

from xlsx.

plandem avatar plandem commented on May 12, 2024

I added count attribute to all collections at style sheet to be sure. Changes at: https://github.com/plandem/xlsx/tree/feature/conditional

from xlsx.

erdian718 avatar erdian718 commented on May 12, 2024

It works fine now. Thank you!

from xlsx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.