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.

Thu Aug 01, 2019 10:12 am

Hi,
How to implement section break in html to Doc conversion.

I know that page break can be set in the CSS section.
<div style='page-break-after:always;'>

But how do you set CSS for section breaks?
Can I convert the DOCX(OpenXML) to retain section breaks?

thank you

tails
 
Posts: 3
Joined: Tue Jul 30, 2019 8:55 am

Fri Aug 02, 2019 10:25 am

Hi,

Thanks for your inquiry. This is Amber from E-iceblue support team.
1. Please refer to the following code to set section breaks in CSS.
Code: Select all
<span ><br clear=all style='page-break-before:always;mso-break-type:section-break'></span>

And I have attached an html file, you could take it as a reference.

2. In your sentence “Can I convert the DOCX(OpenXML) to retain section breaks?” Do you want to convert Docx to html? If so, sorry to tell you that our Spire.Doc couldn’t analysis section breaks, so when convert Docx file to html file, the section breaks won’t be retained. We will add it into our update plan and try to achieve it in the future. Once there is any good news, we will inform you.

Best wishes,
Amber
E-iceblue support team
User avatar

Amber.Gu
 
Posts: 525
Joined: Tue Jun 04, 2019 3:16 am

Tue Aug 06, 2019 8:14 am

Thank you for your assistance :D

tails
 
Posts: 3
Joined: Tue Jul 30, 2019 8:55 am

Tue Aug 06, 2019 10:30 am

Hi,

Thanks for your reply.
Do you want to convert Docx to html and retain the section breaks? In fact, we have added it into our update plan, once there is any progress, we will inform you.

Best wishes,
Amber
E-iceblue support team
User avatar

Amber.Gu
 
Posts: 525
Joined: Tue Jun 04, 2019 3:16 am

Tue Aug 27, 2019 1:35 am

thank you :P :D

tails
 
Posts: 3
Joined: Tue Jul 30, 2019 8:55 am

Return to Spire.Doc