P
Peter Müller
I tried to import the HTML file listed below into Word 2003. I took it from
http://groups.google.com/group/DotNetDevelopment/browse_thread/thread/95d9fee028a3c2f2
but changed it to static HTML code. When I try to open the file using
Word 2003 I get the footer but also the text of the footer appears
inside the body of the Word document. I tried to use another source
concerning with footer but that information yields the same effect, How
can I provide that the header information doesn't appear in the body
anymore?
<html xmlns='urn:schemas-microsoft-comfficeffice'
xmlns:w='urn:schemas-microsoft-comffice:word'
xmlns='http://www.w3.org/TR/REC-html40'>
<head>
<title></title>
<!--[if gte mso9]>
<xml>
<w:WordDocument>
<w:View>Print</w:View>
<w:Zoom>90</w:Zoom>
<woNotOptimizeForBrowser/>
</w:WordDocument>
</xml>
<![endif]-->
<style>
p.MsoFooter, li.MsoFooter, div.MsoFooter{
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
tab-stops:center 3.0in right 6.0in;
font-size:8.0pt;
}
p.MsoHeader, li.MsoHeader, div.MsoHeader{
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
tab-stops:center 3.0in right 6.0in;
font-size:8.0pt;
}
@page Section1 {
size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header: h1;
mso-header-margin:.5in;
mso-footer: f1;
mso-footer-margin:.5in;
mso-paper-source:0;
}
div.Section1 {
page:Section1;
}
</style>
</head>
<body lang=EN-US style='tab-interval:.5in;font-family:Arial;'>
<div class=Section1>
<p style='color:black; font-size:15pt; font-weight:bold;'>
AAA
</p>
<p style='color:gray;font-size:12pt;
font-weight:bold;font-style:italic;'>
BBB
</p>
</div>
<div style='mso-element:header;' id=h1>
<p class=MsoHeader>
<span style='mso-tab-count:1'></span>
CCC
</p>
</div>
<div style='mso-element:footer;' id=f1>
<p class=MsoFooter>
DDD
<span style='mso-tab-count:1'></span>
EEE
<span style='mso-field-code:\" PAGE \"'></span>
FFF
<span style='mso-field-code:\" NUMPAGES \"'></span>
</p>
</div>
</body>
</html>
http://groups.google.com/group/DotNetDevelopment/browse_thread/thread/95d9fee028a3c2f2
but changed it to static HTML code. When I try to open the file using
Word 2003 I get the footer but also the text of the footer appears
inside the body of the Word document. I tried to use another source
concerning with footer but that information yields the same effect, How
can I provide that the header information doesn't appear in the body
anymore?
<html xmlns='urn:schemas-microsoft-comfficeffice'
xmlns:w='urn:schemas-microsoft-comffice:word'
xmlns='http://www.w3.org/TR/REC-html40'>
<head>
<title></title>
<!--[if gte mso9]>
<xml>
<w:WordDocument>
<w:View>Print</w:View>
<w:Zoom>90</w:Zoom>
<woNotOptimizeForBrowser/>
</w:WordDocument>
</xml>
<![endif]-->
<style>
p.MsoFooter, li.MsoFooter, div.MsoFooter{
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
tab-stops:center 3.0in right 6.0in;
font-size:8.0pt;
}
p.MsoHeader, li.MsoHeader, div.MsoHeader{
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
tab-stops:center 3.0in right 6.0in;
font-size:8.0pt;
}
@page Section1 {
size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header: h1;
mso-header-margin:.5in;
mso-footer: f1;
mso-footer-margin:.5in;
mso-paper-source:0;
}
div.Section1 {
page:Section1;
}
</style>
</head>
<body lang=EN-US style='tab-interval:.5in;font-family:Arial;'>
<div class=Section1>
<p style='color:black; font-size:15pt; font-weight:bold;'>
AAA
</p>
<p style='color:gray;font-size:12pt;
font-weight:bold;font-style:italic;'>
BBB
</p>
</div>
<div style='mso-element:header;' id=h1>
<p class=MsoHeader>
<span style='mso-tab-count:1'></span>
CCC
</p>
</div>
<div style='mso-element:footer;' id=f1>
<p class=MsoFooter>
DDD
<span style='mso-tab-count:1'></span>
EEE
<span style='mso-field-code:\" PAGE \"'></span>
FFF
<span style='mso-field-code:\" NUMPAGES \"'></span>
</p>
</div>
</body>
</html>