PDA

View Full Version : All text is underlined when creating a word document


mushahidi
March 13, 2007, 13:48:35
I'm loading a variable of type HTML into a server control. I want to save this to a word document. The resulting document's text is all underlined for some reason, keeping in mind that I have no <U> tags. I have tried the obvious ways to remove the underlyning but without prevail.
Please help.:o

Gunnar Giffey
March 13, 2007, 15:46:33
Hello,

Could you provide me a sample document to make this reproducible?
Please attach any document as ZIP archive, thank you.

mushahidi
March 14, 2007, 12:22:46
Hello,
I've managed to resolve the issue. It seems that there is a style class called MsoNormal which is embedded with every <P> which is causing the problem. After removing them, everything is back to normal. You see, what I am doing is using a Powerweb TextControl control for the client-side RTF editing tool and saving this into the database. If I want to export the contents to word document, I use the TX server control. I wonder if this makes sense, or there some other smarter way of doing it?

Thanks
:cool:

Gunnar Giffey
March 14, 2007, 16:54:28
If you are using TX Text Control .NET Server, you could simply use the BrowserTextControl, that comes with the server version and is true WYSIWYG in the Internet Explorer.
You can see some demos here: http://www.textcontrol.com/products/dotnet_server/demos/browser/

David Jarvis
June 7, 2007, 20:34:42
I have the same problem - converting ANY HTML to MSWORD using txtext (v12) results in all underlined BLUE text.

And NO, using the BrowserTextControl is not an option.

All I need is accurate HTML to MSWORD conversion.

Gunnar Giffey
June 8, 2007, 09:13:04
David,

Do you have a sample document, with which I can reproduce your issue?
Please attach it as ZIP to your post, thank you.