Code Monkey home page Code Monkey logo

Comments (4)

PrzemyslawKlys avatar PrzemyslawKlys commented on May 23, 2024 1

As a side note I've started a hand typed manual using refman latex class for your library, it won't be updated so frequently but when complete it should be much more filled in as useful documentation for the word-processing than what you have being generated. It is however the lowest priority thing that I'm working on but I figured I'd mention it somewhere, if you have any advice I'd appreciate it (Not trying to cause offense but as a stranger coming into this library I ended up finding it easier to read your source code to figure things out then your documentation for a lot of things).

I don't take offense in documentation based topic. The documentation doesn't exists and is mostly based on examples. I have no time to document fully both the source code or methods. It's not on my priority list, but maybe some day someone will sit down and write proper docs inside code, which then can be auto-generated properly. Maybe i'll even create Hugo website. For now the project is quite small and doesn't get much publicity.

from officeimo.

tmheath avatar tmheath commented on May 23, 2024

As a side note I've started a hand typed manual using refman latex class for your library, it won't be updated so frequently but when complete it should be much more filled in as useful documentation for the word-processing than what you have being generated. It is however the lowest priority thing that I'm working on but I figured I'd mention it somewhere, if you have any advice I'd appreciate it (Not trying to cause offense but as a stranger coming into this library I ended up finding it easier to read your source code to figure things out then your documentation for a lot of things).

from officeimo.

PrzemyslawKlys avatar PrzemyslawKlys commented on May 23, 2024

This is what I expect

using (WordDocument document = WordDocument.Create(filePath)) {
    var paragraph = document.AddParagraph("Adding paragraph with some text");
    var newParagraph = paragraph.AddText(" and some more text");
    newParagraph.Bold = true;

    document.Save(true);
}

image

And with this code:

using (WordDocument document = WordDocument.Create(filePath)) {
    var paragraph = document.AddParagraph("Adding paragraph with some text");
    var newParagraph = paragraph.AddText(" and some more text");
    newParagraph.Bold = true;
    paragraph.Color = Color.Aquamarine;

    document.Save(true);
}

image

I am not sure if i understood your problem correctly - but for me paragraph until it's overwritten refers to first run.

from officeimo.

tmheath avatar tmheath commented on May 23, 2024

This is what I expect

using (WordDocument document = WordDocument.Create(filePath)) {
    var paragraph = document.AddParagraph("Adding paragraph with some text");
    var newParagraph = paragraph.AddText(" and some more text");
    newParagraph.Bold = true;

    document.Save(true);
}

image

And with this code:

using (WordDocument document = WordDocument.Create(filePath)) {
    var paragraph = document.AddParagraph("Adding paragraph with some text");
    var newParagraph = paragraph.AddText(" and some more text");
    newParagraph.Bold = true;
    paragraph.Color = Color.Aquamarine;

    document.Save(true);
}

image

I am not sure if i understood your problem correctly - but for me paragraph until it's overwritten refers to first run.

I see, I had a conceptual misunderstanding. My code used a Table cell to create a new paragraph which I then called add text onto in order to insert a run into the text. That is what I expected from the XML but is makes sense now how this works to me. Thank you for your fast response clearing that up.

The manual I've designed has a front section focusing on the consumer facing interface while the back section will actually document all the code, as it currently stands. Painful to update and initially get working, it should be nice enough to work updated every so often without having to be kept exactly up to date. But as I mentioned, I'm working on that under everything else so it's chugging along slowly. When/if I get it finished in time, I'll point you at it.

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.