Click here to Skip to main content
15,795,887 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Is there any way to create chm file automatically using c # ?

Thanks in advance
webmaster442 21-Dec-15 14:53pm    
Exactly what you mean by creating automatically?
Sergey Alexandrovich Kryukov 21-Dec-15 14:57pm    
Quite apparently, it means the program making a CHM file on output :-)
Please see my comment below. I'm just curious, how else one would understand this question?
I even put some formal answer.
shinwari88 21-Dec-15 17:22pm    
mean how to write a code in C# that take xls file as a input, process it and produce chm file as output and this whole process takes place automatically.
thanks for reply. waiting for your response.
Sergey Alexandrovich Kryukov 21-Dec-15 17:42pm    
Oops... I must admit, my previous comment wasn't right. Look at the inquirer's comment to Solution 1, and other comments; it really makes little to no sense.
Sergey Alexandrovich Kryukov 21-Dec-15 14:56pm    
Yes, of course. The way is: write some utility which generates CHM file out of some document source, first of all, a set of HTML files. What's your problem?
What have you tried so far?

Frankly, I would not advise dealing with CHM file. It is, by far, not the most convenient for the users. I don't really understand why not using just the set of HTML files with styles, even scripts, and so on. Even EPUB, more suitable for books, is much better and more flexible.

If you still want CHM, the answer is: develop the utility to create such file. You can find all the documentation to compose such file:[^].

Or you can use some available software. For example, you can use this:[^].

Another project is Sandcastle:[^],[^].

See also this CodeProject article: Generate .chm based documentation of your project using SandCastle tool[^].

I found even some video (no, I don't have enough patience to watch it, don't want to waste time):[^].

Share this answer
shinwari88 21-Dec-15 17:27pm    
But Could you please tell me that Is there any way to generate chm file automatically ?
Sergey Alexandrovich Kryukov 21-Dec-15 17:40pm    
I have no idea what else you may possibly need. I must admit, my comment in reply to the commend by 442 was wrong: "Quite apparently, it means the program making a CHM file on output :-) Please see my comment below. I'm just curious, how else one would understand this question?" I really cannot understand you mean. I also don't understand how XLS file (not even XLSX) can possibly be a source of some documentation; this idea sounds too insane to me, so that's why I did not even pay attention.

And yet, I have to answer: What have you tried so far? What's the problem?

shinwari88 22-Dec-15 19:10pm    
these all are the tools which are used to create chm file.My question is how to generate a chm file automatically through the code ?
Sergey Alexandrovich Kryukov 23-Dec-15 0:09am    
Simple: write your own code; format of CHM is well known. I already explained how to do it, too. Sorry, but I only help people who work.
Share this answer
shinwari88 21-Dec-15 17:26pm    
but I mean is there any way to generate automatically ?
Have you familiarized yourself with MS's HTML Help Workshop ? [^]

Check out: (free)

SandCastle: [^], [^]

DocProject for SandCastle: [^].

KEL Chm Creator: [^]

Check out: (not free)
Atomineer is a low-cost (US$ 60, student license US $40) 3rd. party (commercial) tool that will automate producing structured code comments in your .cs files that can then be run through whatever tool you use to create a .chm file [^]. I have no connection with this company.

And, did you think of reading a few articles on CodeProject: [^]
Share this answer
shinwari88 22-Dec-15 19:12pm    
I need the application or code in any language which read data from excel file and generate a chm file form that automatically not through the tools like KEL Chm or sandcastle etc.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900