Coder Social home page Coder Social logo

Comments (3)

JHJ-MS avatar JHJ-MS commented on August 10, 2024

Hi @punyakrishna, I could not reproduce this issue on my Word using your attached document if you mean the first cell's shadingColor doesn't return "#000000". The .xml of your attached document includes the shading tag as expected (It is showing as follows).
image
image

Have you encountered this problem in other documents? Could you try to set the shading to another color to see whether the issue occurs? How about inserting another table and checking whether the issue occurs for the second table?

I guess something wrong with your document and it breaks the document's xml. The shadingColor API result aligns with the document' Xml is the design.

from office-js.

punyakrishna avatar punyakrishna commented on August 10, 2024

Thank you for the response. I've reviewed the provided document and code, and I am still encountering the issue. Specifically, while you mentioned the shd tag is present, I am referring to the first row, first cell where the shd tag is missing.

Your screenshot highlights the shd tag in the first row, second cell, but my issue is specifically about the absence of the shd tag in the first row, first cell, which is resulting in an empty string being returned for the shading color.

Here is what I have done so far: Downloaded the document and code from above. Ran the code and checked the XML for the
first row, first cell. The shd tag is not present in the first row, first cell, leading to the issue of receiving an empty string for the shading color.

Additionally, you suggested changing the color and checking, but my requirement is to retain the same color. Changing the color is not a viable solution for my use case, as I need to work with the existing color without altering it. Could you please verify the presence of the shd tag in the first row, first cell on your end? Thank you for your assistance.

Screenshots:
image

image

from office-js.

JHJ-MS avatar JHJ-MS commented on August 10, 2024

Hi @punyakrishna . I confirmed that in the xml the first cell's shading tab is missing. However, I still could repro the issue of the API. You can see it in the console log in my first screenshot.

I have tired to use a new doc, and set the shading of the table from UI. Both the API result and the shading tag in xml are as expected.
To help me repro the API issue. Could you describe how you set the table's shading? Do you use JS API or UI? Could you provide the code snippet if you use JS API?

from office-js.

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.