View Single Post
 
Old 08-27-2023, 04:59 PM
Journeyman Journeyman is offline Windows 10 Office 2019
Novice
 
Join Date: Feb 2023
Posts: 15
Journeyman is on a distinguished road
Default HTML To Word Styles

Hi All,

I'm xfering HTML to Word. The xterfer works fine. Except

I was provided advice to to have html style map to word:
https://www.msofficeforums.com/word-...rd-styles.html

That advice had me include the class inside the HTML tag:
Code:
<p Class=MsoBodyText>Body Text Vestibulum ut diam magna. Maecenas ut interdum ante, vel volutpat nibh</p>
<p Class=MsoList>List Vestibulum ut diam magna. Maecenas ut interdum ante, vel volutpat nibh</p>
<p Class=MsoListNumber>List Number Vestibulum ut diam magna. Maecenas ut interdum ante, vel volutpat nibh</p>
<p Class=MsoHeading1>Heading 1 Vestibulum ut diam magna. Maecenas ut interdum ante, vel volutpat nibh</p>
<p Class=MsoTitle>Heading 2 Vestibulum ut diam magna. Maecenas ut interdum ante, vel volutpat nibh</p>
The problem:
Using these style classes inside the P tag works fine. However, on my html form, I have Bullet points.

<Ul>
<Li> List 1</Li>
<Li> List 2</Li>
</Ul>
... etc

Where <p Class=MsoList> works to identify the correct word style <Li Class=MsoList> does not.

This means that a bulleted or numbered list in the HTMl document, with transpose to word as a normal class - no matter how I define the List class.

I've tried <P><Li>.... etc, but that doesn't work. I've tried <Li><P>... etc. but that doesn't work either.

Is there a solution to this issue?

I am simply wanteding my list styles to appears as list styles in word, and use the correct formatting.

Cheers
Reply With Quote