DocX icon indicating copy to clipboard operation
DocX copied to clipboard

can it convert html to word

Open zhhbo opened this issue 7 years ago • 13 comments

is there a way to convert html to word?

zhhbo avatar Mar 10 '17 10:03 zhhbo

You probably need to create a converter, i.e parse the HTML document and create titles, paragraphs, etc. as you browse the DOM tree.

You might want to check HTMLAgilityPack for HTML parsing, it's relatively easy to use.

DatCSharpDev avatar Mar 13 '17 08:03 DatCSharpDev

@DatCSharpDev Thanks.But Can u give a default converter included in DocX

zhhbo avatar Mar 16 '17 08:03 zhhbo

zhhbo it's not implemented and hardly a plan to get there so far

PrzemyslawKlys avatar Mar 16 '17 08:03 PrzemyslawKlys

@PrzemyslawKlys Okay,I try it

zhhbo avatar Mar 16 '17 08:03 zhhbo

@zhhbo Hey, I forked a DocX and implemented InsertHtml method. You can use it from my repo.

emirsator avatar Jan 01 '19 17:01 emirsator

@zhhbo Hey, I forked a DocX and implemented InsertHtml method. You can use it from my repo.

I will try it. thanks

w8w8w8 avatar Mar 19 '19 01:03 w8w8w8

Hi, This will be possible in v1.7. Thank you.

XceedBoucherS avatar Apr 10 '19 19:04 XceedBoucherS

@zhhbo Hey, I forked a DocX and implemented InsertHtml method. You can use it from my repo.

can you add a InsertRtf method in docx? thanks

sugemd avatar Jun 25 '19 01:06 sugemd

Hi, In v1.7, Document will have an InsertContent() method taking html or rtf as parameter. Thank you.

XceedBoucherS avatar Oct 02 '19 19:10 XceedBoucherS

When will v1.7 with InsertHtml be available?

AndJL avatar Apr 29 '20 08:04 AndJL

It's a question of days ;-) It won't be long, we are in the process of releasing it. Thank you for your patience.

XceedBoucherS avatar Apr 29 '20 11:04 XceedBoucherS

Is it available?

joaobsneto avatar Oct 09 '20 13:10 joaobsneto

For now it's included in the v1.7 of the Plus Edition, available here https://xceed.com/en/our-products/product/words-for-net. You can try it for free for 15 days. You can insert HTML and RTF texts. It could eventually be released in the community edition (DocX). Thank you.

XceedBoucherS avatar Oct 15 '20 13:10 XceedBoucherS