Git Product home page Git Product logo

Comments (5)

mattantaliss avatar mattantaliss commented on May 29, 2024 1

That did it. Thanks!

It took some time to make a paragraph style look and act like the table cell I was actually working with (it had some shading, padding, and an image to deal with), but once I got all of the settings just right, it worked like a charm.

from officer.

davidgohel avatar davidgohel commented on May 29, 2024

unfortunately, I can't reproduce without template.docx.

If your have read the code, I am sure you saw that this error is raised in the code. If you set the bookmark in the paragraph (just set it at the beginning of the paragraph for example) and NOT on the whole paragraph, it will work. I will make a additionnal note for that in the documentation. For now, it's only documented in ReporteRs (the old version): https://davidgohel.github.io/ReporteRs/articles/bookmarks.html#declare-bookmark-in-word

from officer.

mattantaliss avatar mattantaliss commented on May 29, 2024

To follow-up, I looked at the formatting marks contained in my template document after seeing the documentation you linked to. In doing so, I realized it's the fact that my text is in a table cell that seems to be the root of my problems. There is an end-of-cell marker at the end of the text I'm trying to modify instead of a plain paragraph mark. Here is a simplified version of my template document for reference: template.docx.

Is there a way to set a bookmark in a table cell or otherwise modify the text in a table cell?

from officer.

davidgohel avatar davidgohel commented on May 29, 2024

To summarize, I understand you want a table because you want to add borders around a paragraph, right?

If it's the case, you could add a paragraph with a style that has borders, the rendering is the same.

from officer.

github-actions avatar github-actions commented on May 29, 2024

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.

from officer.

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.