We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Convert Word document to CHM using C#


We have used Aspose .word dll for converting word document to different
formats like html, pdf and excel.

We have a requirement in which we have to convert word file to chm file. In ASPOSE.
Word is there any way in which we can convert word document to chm file.

Please let us know if any solution is possible. It will be very helpful for


Hi Samanvay,

Thanks for your query. I regret to share with you that the requested feature is not available in Aspose.Words. Please read the save formats of Aspose.Word from this link.

Hi there,

Thanks for your inquiry.

Actually we used to source our documentation straight from Word files and during our build process for the documentation, export these to CHM format.

Aspose.Words does not have any functionality to convert directly to CHM format, but you can however export a document to a series of HTML files and then call another process from command line to convert these files to CHM. For example, we use NDoc to achieve this.

The following sample projects demonstrate how to convert a document into a serises of HTML files ready to be compiled. Each topic is split using the Heading styles.

If we can help with anything else, please feel free to ask.

Thanks for your quick response.

We will be try this approach which you have suggested .hopefully this will give some direction to us.


Thank you very much for your feedback. You are always welcome and please feel free to ask, if you have any query in future. We always welcome constructive response from our customers.

Can you help me how can we use NDoc for compiling these entire individual html help file into a single .chm file or can you please share the code or any other way for it. We are not able to use these as you suggest in previous reply.

Hi Samanvay,

Please read the documentation of NDoc for your kind reference. Let us know, If you have any queries related to Aspose.Words.

Hi Samanvay,

Thanks for your inquiry.

I’m afraid the code we use to generate the CHM using NDoc is quite deeply nested in our build process so it’s hard to provide any direct examples.

Instead, could you please clarify what step is not working or what issue you are having? It would be good if you could attach your project here for testing as well. We will provide you with some further help.