Add/insert a word doc as html doc to app (help file with no .chm)

R

Rich

I have been creating help files as richtext docs and adding them to a
richtextbox. I can use hyperlinks and so one, and I then have a simple help
file. But since a word doc can be save as an html doc, I thought why not
just make the help file an html help file (without the .chm - no compilation
required). Is there a way to add an html word doc to the app?

One other thought I had was to use a webbrowser control in the app and write
out html in the webbrowser web1.DocumentText = <p>Help file for...</p>

The only thing with the web browser is that I would have to write out all
the html tags - could be labor intensive. The word doc would be easier. But
how to add the word doc to the app as an html page?

Thanks,
Rich
 
K

kimiraikkonen

I have been creating help files as richtext docs and adding them to a
richtextbox. I can use hyperlinks and so one, and I then have a simple help
file. But since a word doc can be save as an html doc, I thought why not
just make the help file an html help file (without the .chm - no compilation
required). Is there a way to add an html word doc to the app?

One other thought I had was to use a webbrowser control in the app and write
out html in the webbrowser web1.DocumentText = <p>Help file for...</p>

The only thing with the web browser is that I would have to write out all
the html tags - could be labor intensive. The word doc would be easier. But
how to add the word doc to the app as an html page?

Thanks,
Rich

Rich,
Without being sure completely, if you want to use HTML as help
techique, design your HTML file on a editor like Frontpage then save
it. After that, place a webbrowser control to your form, then set
webbrowser's URL property to your local file's location (eg: c:
\myapplication\help.html).

Also you called a term "html word doc" which cannot be understood. As
i pointed out, i'd suggest you to design a simple HTML help file then
embed it into webbrowser by setting URL property to what you desire.

Hope this helps.

Regards,

Onur Güzel
 
R

Rich

Well, the hyperlinks don't work when I read the rtf doc into the richtextbox,
and the richtextbox wont accept an htm file.

So now I will try to reference this htm file from a web browser control.
How to? Any thoughts on this approach for making simple help files? Or
should I stick with the Html Help workshop tool and compile chm files?
 
K

kimiraikkonen

Well, the hyperlinks don't work when I read the rtf doc into the richtextbox,
and the richtextbox wont accept an htm file.

So now I will try to reference this htm file from a web browser control.
How to? Any thoughts on this approach for making simple help files? Or
should I stick with the Html Help workshop tool and compile chm files?

Rich,
Give up richtextbox if you have difficulty, as i stated just place a
webbrowser control to your form, then in design mode, look at
properties panel of webbrowser control. Locate URL property then enter
html's location (for example --> c:\application\help.html )

When you launch your project your html file will be displayed
automatically inside webbrowser control inside your form.
 
R

Rich

Thank you. Yes, that is the route I will go. I moved on to the web browser
control. So I will create my htm file in FrontPage. Much easier.
 
R

Rich

Actually, navigating to the url brings up IE. I want the help window to stay
within the program. So what I am doing is using the web browser DocumentText
property

str1 = File.ReadAllText("myHelp.txt")
str1 = str1.Replace("""""","""") '--need this for the href's - FileReadAll
add extra ""
web1.DocumentText = str1

myHelp.Txt just contains text with html tags. Now my help is inside the web
browser control and the hyperlinks to diferent paragraphs work. I think this
is a little easier than creating/compiling a bunch of .chm files.

And I have a separate web browser on each tab of a tab control on a form.
 
A

arun raut

I have been creating help files as richtext docs and adding them to a
richtextbox. I can use hyperlinks and so one, and I then have a simple help
file. But since a word doc can be save as an html doc, I thought why not
just make the help file an html help file (without the .chm - no compilation
required). Is there a way to add an html word doc to the app?

One other thought I had was to use a webbrowser control in the app and write
out html in the webbrowser web1.DocumentText = <p>Help file for...</p>

The only thing with the web browser is that I would have to write out all
the html tags - could be labor intensive. The word doc would be easier. But
how to add the word doc to the app as an html page?

Thanks,
Rich

Rich,
Without being sure completely, if you want to use HTML as help
techique, design your HTML file on a editor like Frontpage then save
it. After that, place a webbrowser control to your form, then set
webbrowser's URL property to your local file's location (eg: c:
\myapplication\help.html).

Also you called a term "html word doc" which cannot be understood. As
i pointed out, i'd suggest you to design a simple HTML help file then
embed it into webbrowser by setting URL property to what you desire.

Hope this helps.

Regards,
 
K

kimiraikkonen

Rich,
Without being sure completely, if you want to use HTML as help
techique, design your HTML file on a editor like Frontpage then save
it. After that, place a webbrowser control to your form, then set
webbrowser's URL property to your local file's location (eg: c:
\myapplication\help.html).

Also you called a term "html word doc" which cannot be understood. As
i pointed out, i'd suggest you to design a simple HTML help file then
embed it into webbrowser by setting URL property to what you desire.

Hope this helps.

Regards,

*** Sent via Developersdexhttp://www.developersdex.com***

I wonder why you copied-pasted 1:1 exact copy of one of my post after
1,5 months has passed on the issue. It's weird of you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top