none
Document (.docx) creation using OpenXML not read certain CSS RRS feed

  • Question

  • hi, Im creating a docx document using OpenXML which convert HTML file to word. However certain css are not reflected to word document such as to style table with border

    th {
            border: 0.5px solid black;
        }

    What is actually happened, cause the file transform not follow as CSS written at HTML file? Can anybody assist me.

    Tuesday, October 23, 2018 7:29 AM

All replies

  • Hi,

    Thank you for posting here!

    This is a forum for questions about SharePoint 2010 product. Since your question is more related to Open XML, I'll move your thread to the following forum for better response:

    https://social.msdn.microsoft.com/Forums/office/en-US/home?forum=oxmlsdk

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.

    Thank you for your understanding.

    Best regards,

    Linda Zhang


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Wednesday, October 24, 2018 6:45 AM
  • Hi Gopal,

    >> What is actually happened, cause the file transform not follow as CSS written at HTML file?

    You can convert HTML file to word using Open XMl, but it only works with inline style.

    You can inline a CSS file using a tool like the one described here.

    For more information, please review the following link:

    Converting HTML to Word Docx with style intact

    Hopefully it helps you.

    Best Regards,

    Yuki


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread.

    Wednesday, October 24, 2018 6:55 AM
    Moderator
  • Hi Glopal,

    Thanks for your asking. Did you resolve your issue? If the post helps you, you can mark it as answer and close the post.

    Thank you for understanding. If you have any question, or update, please feel free to let us know.

    I wish you a happy life!

    Best Regards,

    Yuki


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread.

    Friday, October 26, 2018 2:28 AM
    Moderator