Link to home
Start Free TrialLog in
Avatar of Brad Brett
Brad BrettFlag for United States of America

asked on

Compile HTML to CHM help file

Hello,

I want to compile HTML code and image resources to CHM help file.
Avatar of deisrobinson
deisrobinson
Flag of Afghanistan image

Avatar of kris_per
kris_per

Avatar of Brad Brett

ASKER

@deisrobinson, @kris_per: I need to do this myself using C# or VB.NET without using another software.
ASKER CERTIFIED SOLUTION
Avatar of kris_per
kris_per

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
@kris_per: I need to compile the HTML and Images using C# or VB.NET code.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
@Medo3337

Please explain the context of your question, especially why you have rejected the use of the HTML Help utility available (FOR FREE) from Microsoft.
@aikimark: I want to compile the help file using C# or VB.NET application.

I have found API to do so but it's ".lib" file for C++ usage:
http://msdn.microsoft.com/en-us/library/ms669985(VS.85).aspx
@Medo3337

You can launch the utility from a C# or VB.Net application.
htmlhelp.lib is *not* for compiling chm files.  It's for displaying help from your C++ program.
@Medo3337

This HTML Help API you have mentioned is to embed the HTML help control inside another application and to configure how the html help window should be displayed and what page to display in the html help window, etc.

This API is not to create new CHM files...

As I mentioned above, you can call the HHC command from within a c# program and pass the .hhp(which is an xml file) and .html files to this command to create .chm file.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
@help-info: I don't want to use command lines to do this, I would prefer C# or VB.NET code to compile the resources to .chm file.
In your opinion, would a Shell() function be the same as a command line?
@aikimark: Using Shell to access what application?

I don't want the user to see black screen while processing.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
@aikimark: Is that the only way that used in CHM creator softwares?
If you want to do it through object manipulation, I think you're out of luck.  I don't think there is an ActiveX object that wraps this.
I've requested that this question be deleted for the following reason:

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
Humbly submit that the question was indeed fully answered, even if the question asker did not like the solution:

http:#a33478846
http:#a33812316
http:#a33912060
http:#a34030715
In this question, I wanted a way to do that without using other console applications, but since it's alternative solution, I have accepted them.

Thanks everyone,