Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Mon Jun 07, 2021 7:49 am

Hello, paragraph has good format functional like BeforeSpacing or AfterSpacing. For example i can pass html
Code: Select all
<p style="margin-top: 0pt; margin-bottom: 3.0pt"></p>
for getting paragraph with styles. But my documents have a lot of lists, but i dont find how i can use margin between li elements
Code: Select all
<ul>
    <li>Text 1</li>
    <li>Text 2</li>
</ul>


Can you explore how i can manipulate list styles by css (more better) or C#?

IgorSukhov
 
Posts: 6
Joined: Tue Mar 10, 2020 12:21 am

Mon Jun 07, 2021 11:04 am

Hello,

I tried to set margins for the li tags and then converted it to Word using our Spire.Doc, but found that it was not formatted with BeforeSpacing or AfterSpacing. I will post this issue to our Dev team for further investigation. If there is any update, we will let you know.

Besides, you can refer to the following C# code to set the BeforeSpacing or AfterSpacing for the list after converting the HTML to Word.
Code: Select all
            paragraph.Format.BeforeSpacing = 10;

            paragraph.Format.AfterSpacing = 10;


Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Mon Aug 23, 2021 1:27 pm

Hello,

Greetings from E-iceblue!
Glad to inform you that we just released Spire.Doc Pack(hot fix) Version:9.8.6 which fixes your issue, please download it from the following links to test on your side. Looking forward to your test result.

Website link: https://www.e-iceblue.com/Download/down ... t-now.html
Nuget link: https://www.nuget.org/packages/Spire.Doc/9.8.6


Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Tue Aug 31, 2021 10:51 am

Hello,

Greetings from E-iceblue!
Does this hotfix solve your issue? Any feedback will be greatly appreciated.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Return to Spire.Doc