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.

Fri Sep 20, 2024 1:27 pm

Hi,
When generating HTML files from Word using Spire.Docx, we have selected the styleSheet type as 'internal.' However, the styles we define are being overridden by CSS from external libraries that use the !important rule. Is there any way to automatically mark all the CSS properties generated by Spire.Docx as !important to prevent this issue?

SanketKambli126
 
Posts: 1
Joined: Fri Sep 20, 2024 1:14 pm

Mon Sep 23, 2024 6:31 am

Hello,

Thank you for your inquiry.
Our Spire.Doc mimics the behavior of Microsoft Word. We apologize that currently it was unable to mark the attributes generated by doc as !important. If you have any other questions, please feel free to write to me at any time.

Sincerely,
Amin
E-iceblue support team
User avatar

Amin.Gan
 
Posts: 306
Joined: Mon Jul 15, 2024 5:40 am

Return to Spire.Doc