Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Web Authoring / August 2004

Tip: Looking for answers? Try searching our database.

Changing default HTML <style> in Word

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Eric Seaberg - 27 Aug 2004 00:12 GMT
Hello,

This may not be the correct spot for this question, but I
had to start somewhere. Please let me know if I should
repost to another group.

I have a non-MS system which generates HTML files. A job
runs which FTPs the files down to my MS PC where it is
automatically opened via Word and printed to my default
printer.  All that works fine.

However, I've noticed that though I FTP down a file that
looks like:

<HTML>
<BODY>
<CENTER>
<H1>Electronic</H1>
....
</CENTER>
</BODY>
</HTML>

when I view the source in Word I see:

<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html;
charset=us-ascii">
<meta name=ProgId content=Word.Document>
....
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
p
{font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
....
</head>

<body lang=EN-US style='tab-interval:.5in'>

<div class=Section1>

<h1 align=center style='text-align:center'>Electronic</h1>

which wouldn't be so bad IF I could change the margins
which appear in the <style> tag. I've tried modifying the
normal.dot (which works for standard documents) but not
here. Where does the default <style> come from when
opening an HTML document?
lostinspace - 27 Aug 2004 02:48 GMT
----- Original Message -----
From: "Eric Seaberg" <>
Newsgroups: microsoft.public.word.web.authoring
Sent: Thursday, August 26, 2004 7:12 PM
Subject: Changing default HTML <style> in Word

> Hello,
>
[quoted text clipped - 64 lines]
> here. Where does the default <style> come from when
> opening an HTML document?

Eric,
       Very few are able to understand or sift through the bloat in html
created by Word Web pages. I know of nobody who makes an attempt to
understand the gibberish.
The ONLY reason Word adds all that extra junk is to "give Word the ability
to return the html page back into a functional Word document"

Any webmaster will tell you that rather than making an attempt to clean up
Word bloat, it is much easier to just create NEW pages.

IMO, the best thing you could do is seek another method of coverting the
pages to html.

BTW, likley the font and styles settings created by any such conversions are
the result of what ever your default settings are in a NEW Word doc.

If your persistent, here's beginning:
http://groups.google.com/groups?safe=images&ie=UTF-8&as_ugroup=microsoft.public.
word.web.authoring&as_drrb=b&as_mind=12&as_minm=5&as_miny=1999&as_maxd=26&as_max
m=8&as_maxy=2004&lr=&hl=en

Bob   Buckland ?:-\) - 29 Aug 2004 05:09 GMT
Hi Eric,

It seems that for reasons known only to Microsoft it
appears that the reasoning was that since web pages have
no 'page size' that to impose the Normal.dot margins on
an opened HTML file didn't seem appropriate so it uses
an internal default (Word's 1" top/bottom & 1.25" left/right)
and that it would likely take a macro to change the setting
after the document is opened.

=======
Hello,

This may not be the correct spot for this question, but I
had to start somewhere. Please let me know if I should
repost to another group.

I have a non-MS system which generates HTML files. A job
runs which FTPs the files down to my MS PC where it is
automatically opened via Word and printed to my default
printer.  All that works fine.

However, I've noticed that though I FTP down a file that
looks like:

<HTML>
<BODY>
<CENTER>
<H1>Electronic</H1>
....
</CENTER>
</BODY>
</HTML>

when I view the source in Word I see:

<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html;
charset=us-ascii">
<meta name=ProgId content=Word.Document>
....
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
p
{font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
....
</head>

<body lang=EN-US style='tab-interval:.5in'>

<div class=Section1>

<h1 align=center style='text-align:center'>Electronic</h1>

which wouldn't be so bad IF I could change the margins
which appear in the <style> tag. I've tried modifying the
normal.dot (which works for standard documents) but not
here. Where does the default <style> come from when
opening an HTML document?  >>
Signature

I hope this helps you,

Bob  Buckland  ?:-)
MS Office System Products MVP

 *Courtesy is not expensive and can pay big dividends*

Office 2003 explained
 http://microsoft.com/uk/office/editions.asp


Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.