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.
Wed May 08, 2024 5:03 am
Hello,
I'm trying to load a Word Document using Spire, loop through each section and check for Text Form Fields, then match form fields with a dictionary of values and add the text to the fields. Some of these text values may contain basic HTML markup or even more complicated markup with classes and styles. We want these styles to be maintained and rendered on the document in each relevant form field.
However, it appears that Text Form Fields not do appear to support displaying HTML as my text values render with HTML tags intact instead of being parsed.
Is this at all possible to do? Do you have a workaround for how we might be able to make the form fields compatible with HTML?
Thank you in advance.
Zac
-

ZCliff92
-
- Posts: 31
- Joined: Thu Jan 20, 2022 1:58 am
Wed May 08, 2024 6:37 am
Hi,
Thanks for your message.
Are you referring to the TextFormFiled format like the one below? If so, I am sorry to say that TextFormFiled does not support html formatting in the Microsoft Word standard. If my understanding is wrong, please provide us with your Word test file and the html data that needs to be filled in so that we can investigate further. Thank you in advance for your cooperation.
Text Form Field.jpg
Sincerely,
Doris
E-iceblue support team
Login to view the files attached to this post.
-


Doris.Liu
-
- Posts: 460
- Joined: Mon Nov 07, 2022 8:10 am