W
webunit
I use an application that generates and HTML file. I use Word 2003 (version
11, SP1 under Windows 2003) to open the file, perform some re-formatting, and
resave the file as a Word document.
I use VBA to open the file. If I have the OpenandRepair option set to TRUE,
Word repairs the file and the Show Repairs dialog box indicates "Styles 1" as
the error. There is no Style 1 in the document.
The top section of the HTML source looks like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>TEST FILE</TITLE>
<META NAME="Generator" CONTENT="Program Name">
<META NAME="Keywords" CONTENT="REPORT TEST">
<META NAME="Date" CONTENT="September 10, 2005">
<META NAME="Time" CONTENT="4:56 PM">
<STYLE type="text/css">
<!--
..Normal { font-family: "Arial", sans-serif; font-size: 11pt; font-weight:
normal; vertical-align: baseline; color: #000000; background: #FFFFFF; }
..Stat { font-family: "Arial", sans-serif; font-size: 11pt; font-weight:
normal; text-align: right; vertical-align: baseline; color: #000000;
background: #FFFFFF; }
..WsEntry { font-family: "Arial", sans-serif; font-size: 9pt; font-weight:
normal; vertical-align: top; color: #000000; background: #FFFFFF; }
..HLabel { font-family: "Arial", sans-serif; font-size: 9pt; font-weight:
700; vertical-align: baseline; color: #000000; background: #FFFFFF; }
..HValue { font-family: "Arial", sans-serif; font-size: 9pt; font-weight:
normal; vertical-align: baseline; color: #000000; background: #FFFFFF; }
..ColName { font-family: "Arial", sans-serif; font-size: 9pt; font-weight:
700; vertical-align: middle; color: #000000; background: #FFFFFF; }
H1 { font-family: "Arial", sans-serif; font-size: 12pt; font-weight: 700;
text-align: center; color: #000000; background: #FFFFFF; }
..LFooter { font-family: "Arial", sans-serif; font-size: 9pt; font-weight:
normal; vertical-align: bottom; color: #000000; background: #FFFFFF; }
..RFooter { font-family: "Arial", sans-serif; font-size: 9pt; font-weight:
normal; text-align: right; vertical-align: bottom; color: #000000;
background: #FFFFFF; }
..indent { margin-left: 24pt; }
..indent0 { margin-left: 0pt; }
..indent1 { margin-left: 24pt; }
..indent2 { margin-left: 48pt; }
..indent3 { margin-left: 72pt; }
BODY { background: #FFFFFF; }
-->
</STYLE>
</HEAD>
<BODY>
Within the body of the source code are references to the various defined
styles as:
<td class="HValue">
I realize this may be a tough one to diagnose without the full HTML file (I
can make one available, if needed) but I'm hoping someone out there has seen
this problem and can tell me what's wrong (OR likes a challenge, and can help
figure out the problem and solution).
BTW, even though Word is "repairing" the document, any time a repair is
needed, it raises the possibility of corruption, that's why I'd like to
eliminate the need for the repair.
Thanks,
webunit
11, SP1 under Windows 2003) to open the file, perform some re-formatting, and
resave the file as a Word document.
I use VBA to open the file. If I have the OpenandRepair option set to TRUE,
Word repairs the file and the Show Repairs dialog box indicates "Styles 1" as
the error. There is no Style 1 in the document.
The top section of the HTML source looks like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>TEST FILE</TITLE>
<META NAME="Generator" CONTENT="Program Name">
<META NAME="Keywords" CONTENT="REPORT TEST">
<META NAME="Date" CONTENT="September 10, 2005">
<META NAME="Time" CONTENT="4:56 PM">
<STYLE type="text/css">
<!--
..Normal { font-family: "Arial", sans-serif; font-size: 11pt; font-weight:
normal; vertical-align: baseline; color: #000000; background: #FFFFFF; }
..Stat { font-family: "Arial", sans-serif; font-size: 11pt; font-weight:
normal; text-align: right; vertical-align: baseline; color: #000000;
background: #FFFFFF; }
..WsEntry { font-family: "Arial", sans-serif; font-size: 9pt; font-weight:
normal; vertical-align: top; color: #000000; background: #FFFFFF; }
..HLabel { font-family: "Arial", sans-serif; font-size: 9pt; font-weight:
700; vertical-align: baseline; color: #000000; background: #FFFFFF; }
..HValue { font-family: "Arial", sans-serif; font-size: 9pt; font-weight:
normal; vertical-align: baseline; color: #000000; background: #FFFFFF; }
..ColName { font-family: "Arial", sans-serif; font-size: 9pt; font-weight:
700; vertical-align: middle; color: #000000; background: #FFFFFF; }
H1 { font-family: "Arial", sans-serif; font-size: 12pt; font-weight: 700;
text-align: center; color: #000000; background: #FFFFFF; }
..LFooter { font-family: "Arial", sans-serif; font-size: 9pt; font-weight:
normal; vertical-align: bottom; color: #000000; background: #FFFFFF; }
..RFooter { font-family: "Arial", sans-serif; font-size: 9pt; font-weight:
normal; text-align: right; vertical-align: bottom; color: #000000;
background: #FFFFFF; }
..indent { margin-left: 24pt; }
..indent0 { margin-left: 0pt; }
..indent1 { margin-left: 24pt; }
..indent2 { margin-left: 48pt; }
..indent3 { margin-left: 72pt; }
BODY { background: #FFFFFF; }
-->
</STYLE>
</HEAD>
<BODY>
Within the body of the source code are references to the various defined
styles as:
<td class="HValue">
I realize this may be a tough one to diagnose without the full HTML file (I
can make one available, if needed) but I'm hoping someone out there has seen
this problem and can tell me what's wrong (OR likes a challenge, and can help
figure out the problem and solution).
BTW, even though Word is "repairing" the document, any time a repair is
needed, it raises the possibility of corruption, that's why I'd like to
eliminate the need for the repair.
Thanks,
webunit