>> Edit .htm document using Word

J

Jonathan

Hi, I have a web page that I update using code. That is, programmatically
open a .htm file and replace strings at specific locations in a table. This
works superbly.

The problem is that MS Word (2003) adds meta data and interprets the tags as
document formatting. As a result I get a bloated web page that has a layout
inconsistent with other web pages.

For example...
<h1>Quick Details</h1>

becomes...
<h1 align=center style='text-align:center'>Quick Details</h1>

This includes layout changes in locations that I have not edited.

Do you have any ideas or suggestions to achieve the desired outcome
appreciated :)

Many thanks
Jonathan
 
J

Jonathan

<smile> lol, thanks... I do it because I can... well, I'm not yet familiar
with editing a text file programatically. I guess if there are not other
suggestions I will just have to learn!</smile>

Many thanks
Jonathan
 
G

Graham Mayor

If you want to hand edit html code in Word then treat it all as plain text.
Open as plain text, don't save as a web page. Save as plain text with quotes
around the filename.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
J

Jonathan

thanks Graham,

simple, allows me to tap into the Word object library and works well...

Jonathan
 

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