Inserting HTML code in Word

S

Supriya

Hi All,
I have HTML code(not file). How can I view the data in the wod document
programatically.
For example
HTML code:

<html ><head></head><body>Sample HTML data</body></html>

Data should appear in the cell is "Sample HTML data"

Is there any class or Interface in the library to handle that?

Please help me.

Thanks in Advance

Supriya
 
J

John McGhie

Hi Supriya:

Provided that your document has been saved in HTML (Save As>Web Page...),
when you edit the document in Word a View>HTML Source" entry will appear on
the View menu. That opens an editable view of the raw HTML.

If your document is in .doc format, it is effectively in binary and you can
not easily view the text with anything (other than Word).

Cheers


Hi All,
I have HTML code(not file). How can I view the data in the wod document
programatically.
For example
HTML code:

<html ><head></head><body>Sample HTML data</body></html>

Data should appear in the cell is "Sample HTML data"

Is there any class or Interface in the library to handle that?

Please help me.

Thanks in Advance

Supriya

--
Don't wait for your answer, click here: http://www.word.mvps.org/

Please reply in the group. Please do NOT email me unless I ask you to.

John McGhie, Consultant Technical Writer
McGhie Information Engineering Pty Ltd
http://jgmcghie.fastmail.com.au/
Sydney, Australia. S33°53'34.20 E151°14'54.50
+61 4 1209 1410, mailto:[email protected]
 
L

little_creature

Hi Supriya:

Provided that your document has been saved in HTML (Save As>Web Page...),
when you edit the document in Word a View>HTML Source" entry will appear on
the View menu. That opens an editable view of the raw HTML.

If your document is in .doc format, it is effectively in binary and you can
not easily view the text with anything (other than Word).

Cheers









--
Don't wait for your answer, click here:http://www.word.mvps.org/

Please reply in the group. Please do NOT email me unless I ask you to.

John McGhie, Consultant Technical Writer
McGhie Information Engineering Pty Ltdhttp://jgmcghie.fastmail.com.au/
Sydney, Australia. S33°53'34.20 E151°14'54.50
+61 4 1209 1410, mailto:[email protected]

I'm bit puzzled...
if you want to see the result of your <html ><head></head><body>Sample
HTML data</body></html> code, than sipmply put this into any text file
and save with extension HTML. Then double click on that file with html
extension will open the interpreted result in your default browser -
ie you will see table. ¨
This is proper HTML code - it is enclosed in <html ></html> tags.

Than if you do view>source both in FF and Safari you will see the code
as well as the result.
 

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