Coder Social home page Coder Social logo

Comments (4)

PrzemyslawKlys avatar PrzemyslawKlys commented on May 19, 2024

Neither can I, will see what's wrong with it. It seems we're applying it to another run, instead of the already existing one within HyperLink. This may require some changes or maybe application styles directly to hyperlink

image

from officeimo.

dstringvc avatar dstringvc commented on May 19, 2024

Any updates on the hyperlink issue? Is there anything I can do to help with the troubleshooting? Thank you!

from officeimo.

PrzemyslawKlys avatar PrzemyslawKlys commented on May 19, 2024

I did play with it. I wanted HyperLink to inherit properties from Paragraph, so that it would have all the options from Paragraph (settable on the hyperlink itself). Unfortunetly my knowledge on inheritance and how to make some things is very limited, so I was struggling to fix it. I may as well copy code from Paragraphs (all properties/methods that touch RUnProperties on Paragraph) and let it be a "copy", that later on can be improved by someone who's better coder.

Generally the problem is that Hyperlinks can contain runs and runs contains runproperties which is what makes the hyperlink styling work. We don't have that now. What we have now happens on the run that's outside of hyperlink, but within paragraph.

image

As with OpenXML usual approach it's possible that one Link, or a more the Text it binds to it's possible is split over multiple runs (think of a link that has multiple colors - not your standard, but it could happen).

So there's no need to troubleshoot anything - more like help is needed to fix it properly, because as far as I see it - I can only fix it with a workaround, which may work, but should be improved later on.

from officeimo.

PrzemyslawKlys avatar PrzemyslawKlys commented on May 19, 2024

It took a bit longer than expected. But it's now merged.

from officeimo.

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.