Mar 05

Who ever dreamed to convert HTML to a Word document? Lots of you as I can see on the forums…

This is a recurrent question on the OpenXml forums: "how can I convert (or insert) html to word?"
The classic answer is around the class altChunk as Eric White explain it.

 

One year ago, I needed to translate some HTML text from SharePoint rich text field to an OpenXml report. I managed to support the more common tags (<i>, <b>, <span>, <div>, …). All the tags wrote by SharePoint rich text field in compatible mode and those with the TinyMCE extension (as seen in one of my previous post).

I continued working on that little project to support even more HTML tags and now, I'm happy to announce you a new codeplex project Smile


Convert some Html chunks or an entire page to a Word 2007 document: http://notesforhtml2openxml.codeplex.com/.

Feel free to drop me a comment if you enjoy the library!

Tags:

Comments

Boca Raton

Posted on Thursday, 22 April 2010 04:27

This site really helps me with my problem. thanks!



rap instrumentals

Posted on Thursday, 22 April 2010 21:46

Eric White had it, thanks for having linked to him. This is exactly what i need now..to convert some xtml content to my word doc.
Thanks...

Baccarat

Posted on Monday, 10 May 2010 12:41

Hmm, I have always thought to insert an HTML into a word document. I felt like it is easier to code. I've been into a lot of forums before and no one has given me a straight answer. And good thing I came across the post. Thanks sooo much!

doug.prototype

Posted on Thursday, 13 May 2010 14:50

This works great. Is there a way for it to create borders around images if the img border or style tag says it has a border?

Olivier

Posted on Wednesday, 19 May 2010 03:29

doug> yes this is possible but by default, I removed the borders. Can you open an issue here please: notesforhtml2openxml.codeplex.com/.../basic

Dog Kennel

Posted on Wednesday, 19 May 2010 12:46

Really enjoyed the library.  Thanks

haunted places

Posted on Saturday, 22 May 2010 23:36

Ah thanks for the tips, I just wish I found this site a few months earlierSmile

Jim Karter

Posted on Tuesday, 25 May 2010 08:24

Good tips and will definitely help me for my project works.

Val

Posted on Monday, 31 May 2010 11:55

Is there some similar library which converts Html doc to the Power point open xml elements? Thanks

oracle rac training

Posted on Monday, 7 June 2010 19:57

great.. that was simple way to convert.. thanks for your best tips

character

Posted on Thursday, 10 June 2010 05:39

Awesome! This is a very simple solution to convert HTML into open XML.. You see, I have my website in Plain HTML, and I was thinking of upgrading. Thanks a lot.

backlinks

Posted on Friday, 11 June 2010 10:41

Initially I used to do the same. but now i found plugins which does this job without putting my head into it.

attorney marketing

Posted on Monday, 14 June 2010 12:14

Hey do you any best source to learn HTML and XML online.I am very interested to learn them.Would be glad if you let me know any such places.

Gino

Posted on Friday, 25 June 2010 09:39

Cant install OpenXml SDK 2.0, can please somebody help?
My email rinaldi.gino@virgilio.it. Thank you

balanzza luggage scales

Posted on Monday, 5 July 2010 18:33

In this time, I felt like it is easier to code. I've been into a lot of forums before and no one has given me a straight answer

London Female Escorts

Posted on Thursday, 8 July 2010 09:07

i have same problem in the past converting from html to word.the application works like a charm

Pepper Spray

Posted on Saturday, 10 July 2010 03:32

Wow I wish I found this site earlier! This solution works perfectly, thanks so much!

Wanda Dupree

Posted on Tuesday, 13 July 2010 07:23

I just subscribed to your RSS feed after reading this item! Will you write more on the subject in future articles?

Blog Literature

Posted on Thursday, 22 July 2010 16:50

You have saved my time. Now i am going to create my xml site maps to submit in google. Thanks for sharing such valuable resource with us.

idolreplicas

Posted on Saturday, 24 July 2010 05:15

crib bedding sets

I was very thrilled to find this site on google.I wanted to say thank you to you with regard to this great read!! I certainlyenjoyed every little bit of it and I've you bookmarked to take a look at new stuff you post.

James Delosangeles

Posted on Tuesday, 27 July 2010 18:41

Couldnt be written any better about openxml . Reading this post strikes a chord in my memory of my old room mate! He always kept talking regarding this. I'll forward this informative article 2 him. Pretty certain he will have a good read. Appreciation for sharing!

Add comment




  Country flag

biuquote
Loading