New Post: Styled spans turn the subsequent headings into normal text
After testing both cases, I obtain the same results on the 2nd hearing. You specify both <h1> so you obtain Heading 1. Yes, <span> handle also class attribute.
View ArticleNew Post: Styled spans turn the subsequent headings into normal text
Just imported this document:<!doctype html> <html><head><title>a</title></head><body> <h1>Header 1</h1> <p><span class="Normal">Par...
View ArticleNew Post: Nested numbered lists
This is why i said, that MultilevelList is defined in the template that is used to base the new document on. My code loads the template, which already contains MultilevelList definition, converts the...
View ArticleNew Post: Nested numbered lists
One thing to watch, make sure the Css name converts to the word name. camel case converts to include spaces. converter.HtmlStyles.DefaultStyle = converter.HtmlStyles.GetStyle("Multilevel List");<li...
View ArticleNew Post: Nested numbered lists
The style is actually called "MultilevelList" in the template. If I was using a wrong name, the missing style event should have fired, I guess.
View ArticleNew Post: Nested numbered lists
Yes I see. But I found some class & style names dont work..I could not explain it. but the only reliable way I found was: class:"MbmBulletList" === style:"Mbm Bullet List" and table styles needed...
View ArticleNew Post: Styled spans turn the subsequent headings into normal text
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
View ArticleNew Post: Nested numbered lists
mart1c, you are perfectly right about predefining your styles first in Word, then importing them. This is the correct way to do. Beware that Style in OpenXml can be applied at 4 different scopes:...
View ArticleNew Post: Nested numbered lists
Wow, have folks at MS sunk so low? Deleted the style, added it again under "List Multi Level" name, changed the code, and still no difference - Decimal numbers at all levels. It still does not stick in...
View ArticleNew Post: Nested numbered lists
I'm interested to see your template doc with the styles setup. Are you able to post somewhere?
View ArticleNew Post: Nested numbered lists
Let me describe this scenario and ask if you think this is an issue with the library, or I am doing something wrong. When I tried using "list-style-type:lower-roman" in order to get the roman numbering...
View ArticleNew Post: Should H1 restart the numbering of H2 or I am doing something wrong...
unluckily, when dealing with numbering, this is always a pain. It's terribly bad designed. I used this<olstyle="list-style-type: upper-alpha"><li>This is H1 <olstyle="list-style-type:...
View ArticleNew Post: Should H1 restart the numbering of H2 or I am doing something wrong...
onizet, I absolutely bow before your patience in dealing with Open XML implementation, where discovering the things is such a pain. Thanks a lot for looking into that - you are going to make so many...
View ArticleNew Post: Nested numbered lists
I think if you use css styles you are bound to fail. htm2openxml tries to create word styles on the fly: eg. (just some random lines of code) StartNumberingValue = new StartNumberingValue() { Val = 1...
View ArticleNew Post: Should H1 restart the numbering of H2 or I am doing something wrong...
Was just looking at the previous comment and noticed, that when using upper Alpha style, the top level list should have been A, B, C numbered. But it appears as 1, 2, 3. Does that make sense?onizet...
View ArticleNew Post: Nested numbered lists
Totally agree - I want to do as little formatting in HTML as possible and rely completely on the template used to create the document. Using roman style was just a dirty workaround that backfired of...
View ArticleNew Post: Should H1 restart the numbering of H2 or I am doing something wrong...
Should this be used instead of trying to create the numberings manually?http://officeopenxml.com/WPnumbering-restart.php What I mean is that every numbering level in the document should have its...
View ArticleNew Post: Should H1 restart the numbering of H2 or I am doing something wrong...
I don't know yet because I already use LevelOverride + StartOverrideNumberingValue. I have to test again but for now, I have detected why my code doesn't work. I check with the previous list to know if...
View ArticleNew Post: Fork this project
Is it possible to fork this project? I would like to make some changes to enable custom tag processing.
View ArticleNew Post: Fork this project
hello, Thanks for your interest but unluckily, I'm not very enthusiast for a fork. The code is open source so if you need it for your own job, you can duplicate for yourself. But if you want to publish...
View Article