Comments (4)
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.
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.
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);
}
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);
}
I am not sure if i understood your problem correctly - but for me paragraph until it's overwritten refers to first run.
from officeimo.
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); }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); }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)
- Strong naming HOT 5
- Add Paragraph Image from Project Resources HOT 1
- Several Fields in one Paragraph HOT 3
- Get Footnotes from Document HOT 10
- How to align page number in Footer HOT 7
- Is any possibility to add Hyperlink inside table cell ? HOT 2
- Document properties are not set when saving to Stream HOT 3
- mathematical formulas HOT 1
- Blank protection password not accepted when trying to unprotect generated word document HOT 4
- Insert image with fixed position HOT 6
- Add 3D Charts HOT 1
- Color applied to first paragraph in header/footer ignored HOT 7
- How to reset page numbers in a new section HOT 1
- Make the FindAndReplace(List<WordParagraph> ... ) method public HOT 1
- Inserting Tables HOT 1
- Documentation for attribute WordParagraph.underline links to MSDN HOT 5
- [Bug]Do Table Cells support adding images? HOT 7
- Horizontal Merge Weird Behaviour HOT 1
- Place Text at specific location HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from officeimo.