Changing Web page <style> defaults

E

Eric Seaberg

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 an HTML file. A
job runs which FTPs the file down to my MS PC where it is
opened via Word and automatically 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:eek:="urn:schemas-microsoft-com:eek:ffice:eek:ffice"
xmlns:w="urn:schemas-microsoft-com:eek:ffice: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 a document?
 
S

Stephanie Krieger

Hi, Eric,

Not sure if this is the best newsgroup (I'm pretty new
here :) but I think I can help.

Have you tried editing those settings in the Microsoft
Script Editor?

With the document open in Word, go to Tools, Macro,
Microsoft Script Editor. You can save your changes there.

(the margins in the script you sent are Word defaults)

Stephanie Krieger
author of Microsoft Office Document Designer
(from Microsoft Press)
e-mail: [email protected]
blog: arouet.net
 
E

Eric Seaberg

Based on the Script Editor help, this would help when I'm
saving a file as an HTML document. However, I'm creating
an HTML document on the server and just opening the
existing document to print it. I may be missing something
here, but I'm not sure the Script Editor is the answer in
this case.

Can you suggest another newsgroup in which this question
may be more appropriate?
 
Top