积极答复者
求解:php导出word 报错:这张网页中的某些文件不在预期的位置,...

问题
-
w我想写一个导出眉页眉脚这种样式导出来报错:这张网页中的某些文件不在预期的位置,...;点击是后里面的样式全部在。怎么能不让报错呢???
代码:
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 11">
<meta name=Originator content="Microsoft Word 11">
<link rel=File-List href="word.files/filelist.xml">
<link rel=Edit-Time-Data href="word.files/editdata.mso">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>梯子网</title>
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Subject>梯子组卷好帮手</o:Subject>
<o:Author>www.TiZi.com</o:Author>
<o:Description>梯子网(www.tizi.com) 中小学优质教育资源共享平台.为老师助力,为学生减负,为家长分忧</o:Description>
<o:LastAuthor>微软用户</o:LastAuthor>
<o:Revision>3</o:Revision>
<o:Created>2014-07-26T08:09:00Z</o:Created>
<o:LastSaved>2014-07-26T08:09:00Z</o:LastSaved>
<o:Pages>16</o:Pages>
<o:Words>1300</o:Words>
<o:Characters>7410</o:Characters>
<o:Company>tizi.com</o:Company>
<o:Lines>61</o:Lines>
<o:Paragraphs>17</o:Paragraphs>
<o:CharactersWithSpaces>8693</o:CharactersWithSpaces>
<o:Version>11.9999</o:Version>
</o:DocumentProperties>
<o:CustomDocumentProperties>
<o:KSOProductBuildVer dt:dt="string">2052-9.1.0.4716</o:KSOProductBuildVer>
</o:CustomDocumentProperties>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:PunctuationKerning/>
<w:DrawingGridVerticalSpacing>7.8 磅</w:DrawingGridVerticalSpacing>
<w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery>
<w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:Compatibility>
<w:SpaceForUL/>
<w:BalanceSingleByteDoubleByteWidth/>
<w:DoNotLeaveBackslashAlone/>
<w:ULTrailSpace/>
<w:DoNotExpandShiftReturn/>
<w:AdjustLineHeightInTable/>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:UseFELayout/>
</w:Compatibility>
<w:DoNotOptimizeForBrowser/>
</w:WordDocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:LatentStyles DefLockedState="false" LatentStyleCount="156">
</w:LatentStyles>
</xml><![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 680460288 22 0 262145 0;}
@font-face
{font-family:黑体;
panose-1:2 1 6 9 6 1 1 1 1 1;
mso-font-alt:SimHei;
mso-font-charset:134;
mso-generic-font-family:modern;
mso-font-pitch:fixed;
mso-font-signature:-2147482945 953122042 22 0 262145 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-536870145 1073786111 1 0 415 0;}
@font-face
{font-family:"\@黑体";
panose-1:2 1 6 9 6 1 1 1 1 1;
mso-font-charset:134;
mso-generic-font-family:modern;
mso-font-pitch:fixed;
mso-font-signature:-2147482945 953122042 22 0 262145 0;}
@font-face
{font-family:"\@宋体";
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 680460288 22 0 262145 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
mso-pagination:none;
font-size:10.5pt;
mso-bidi-font-size:11.0pt;
font-family:Calibri;
mso-fareast-font-family:宋体;
mso-bidi-font-family:"Times New Roman";
mso-font-kerning:1.0pt;}
p.MsoHeader, li.MsoHeader, div.MsoHeader
{mso-style-link:" Char Char1";
margin:0cm;
margin-bottom:.0001pt;
text-align:center;
mso-pagination:none;
tab-stops:center 207.65pt right 415.3pt;
layout-grid-mode:char;
border:none;
mso-border-bottom-alt:solid windowtext .75pt;
padding:0cm;
mso-padding-alt:0cm 0cm 1.0pt 0cm;
font-size:9.0pt;
font-family:Calibri;
mso-fareast-font-family:宋体;
mso-bidi-font-family:"Times New Roman";
mso-font-kerning:1.0pt;}
p.MsoFooter, li.MsoFooter, div.MsoFooter
{mso-style-link:" Char Char";
margin:0cm;
margin-bottom:.0001pt;
mso-pagination:none;
tab-stops:center 207.65pt right 415.3pt;
layout-grid-mode:char;
font-size:9.0pt;
font-family:Calibri;
mso-fareast-font-family:宋体;
mso-bidi-font-family:"Times New Roman";
mso-font-kerning:1.0pt;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-link:" Char Char2";
margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
mso-pagination:none;
font-size:9.0pt;
font-family:Calibri;
mso-fareast-font-family:宋体;
mso-bidi-font-family:"Times New Roman";
mso-font-kerning:1.0pt;}
span.CharChar
{mso-style-name:" Char Char";
mso-style-locked:yes;
mso-style-link:页脚;
mso-ansi-font-size:9.0pt;
mso-bidi-font-size:9.0pt;}
span.CharChar2
{mso-style-name:" Char Char2";
mso-style-noshow:yes;
mso-style-locked:yes;
mso-style-link:批注框文本;
mso-ansi-font-size:9.0pt;
mso-bidi-font-size:9.0pt;}
span.CharChar1
{mso-style-name:" Char Char1";
mso-style-locked:yes;
mso-style-link:页眉;
mso-ansi-font-size:9.0pt;
mso-bidi-font-size:9.0pt;}
span.Char
{mso-style-name:"无间隔 Char";
mso-style-locked:yes;
mso-style-link:"No Spacing";
mso-ansi-font-size:11.0pt;
mso-font-kerning:0pt;}
p.NoSpacing, li.NoSpacing, div.NoSpacing
{mso-style-name:"No Spacing";
mso-style-parent:"";
mso-style-link:"无间隔 Char";
margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:Calibri;
mso-fareast-font-family:宋体;
mso-bidi-font-family:"Times New Roman";}
/* Page Definitions */
@page
{mso-mirror-margins:yes;
mso-page-border-surround-header:no;
mso-page-border-surround-footer:no;
mso-footnote-separator:url("word.files/header.htm") fs;
mso-footnote-continuation-separator:url("word.files/header.htm") fcs;
mso-endnote-separator:url("word.files/header.htm") es;
mso-endnote-continuation-separator:url("word.files/header.htm") ecs;
mso-facing-pages:yes;}
@page Section1
{size:841.85pt 595.25pt;
mso-page-orientation:landscape;
margin:42.5pt 28.0pt 42.5pt 99.85pt;
mso-header-margin:27.55pt;
mso-footer-margin:29.6pt;
mso-columns:2 even 21.25pt;
mso-column-separator:solid;
mso-even-header:url("word.files/header.htm") eh1;
mso-header:url("word.files/header.htm") h1;
mso-even-footer:url("word.files/header.htm") ef1;
mso-footer:url("word.files/header.htm") f1;
mso-first-header:url("word.files/header.htm") fh1;
mso-first-footer:url("word.files/header.htm") ff1;
mso-paper-source:0;
layout-grid:15.6pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
/* Style Definitions */
table.MsoNormalTable
{mso-style-name:普通表格;
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.0pt;
font-family:"Times New Roman";
mso-ansi-language:#0400;
mso-fareast-language:#0400;
mso-bidi-language:#0400;}
</style>
<![endif]--><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="3074"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1"/>
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor=white lang=ZH-CN style='tab-interval:21.0pt;text-justify-trim:
punctuation'>
<div class=Section1 style='layout-grid:15.6pt'>
</div></body>
</html>
header.html文件
<html xmlns:v="urn:schemas-microsoft-com:vml" 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=gb2312"> <meta name=ProgId content=Word.Document> <meta name=Generator content="Microsoft Word 11"> <meta name=Originator content="Microsoft Word 11"> <link id=Main-File rel=Main-File href="../word.htm"> <!--[if gte mso 9]><xml> <o:shapedefaults v:ext="edit" spidmax="3074"/> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext="edit"> <o:idmap v:ext="edit" data="2"/> </o:shapelayout></xml><![endif]--> </head>
<body lang=ZH-CN>
<div style='
<p lang=EN-US><span style='<![if !supportFootnotes]>
<hr align=left size=1 width="33%">
<![endif]></span></span></p>
</div>
<div style='
<p lang=EN-US><span style='<![if !supportFootnotes]>
<hr align=left size=1>
<![endif]></span></span></p>
</div>
<div style='
<p lang=EN-US><span style='<![if !supportFootnotes]>
<hr align=left size=1 width="33%">
<![endif]></span></span></p>
</div>
<div style='
<p lang=EN-US><span style='<![if !supportFootnotes]>
<hr align=left size=1>
<![endif]></span></span></p>
</div>
<div style='
<p style='border:none;<span lang=EN-US><!--[if gte vml 1]><v:shapetype id="_x0000_t202" coordsize="21600,21600" o:spt="202" path="m,l,21600r21600,l21600,xe"> <v:stroke joinstyle="miter"/> <v:path gradientshapeok="t" o:connecttype="rect"/> </v:shapetype><v:shape id="Quad_x0020_Arrow_x0020_5" o:spid="_x0000_s2049" type="#_x0000_t202" style=';left:0;text-align:left; margin-left:734pt;margin-top:-28pt;width:26pt;height:596pt;z-index:5; v-text-anchor:middle'> <v:textbox style='layout-flow:vertical; <![if RotText]><![if !mso]> <table cellpadding=0 cellspacing=0 width="100%"> <tr> <td><![endif]> <div> <p style='text-align:justify;text-justify:distribute-all-lines'><span style='font-family:宋体; Calibri'>…………○…………内…………○…………装…………○…………订…………○…………线…………○…………</span></p> </div> <![if !mso]></td> </tr> </table> <![endif]><![endif]></v:textbox> </v:shape><![endif]--><!--[if gte vml 1]><v:shape id="Quad_x0020_Arrow_x0020_2" o:spid="_x0000_s2050" type="#_x0000_t202" style=';left:0; text-align:left;margin-left:760pt;margin-top:-28pt;width:28pt;height:596pt; z-index:3;v-text-anchor:middle' fillcolor="#d8d8d8"> <v:textbox style='layout-flow:vertical; <![if RotText]><![if !mso]> <table cellpadding=0 cellspacing=0 width="100%"> <tr> <td><![endif]> <div> <p align=center style='text-align:center'><span style='font-family:宋体; Calibri'>※※请※※不※※要※※在※※装※※订※※线※※内※※答※※题※※</span></p> </div> <![if !mso]></td> </tr> </table> <![endif]><![endif]></v:textbox> </v:shape><![endif]--><!--[if gte vml 1]><v:rect id="Rectangle_x0020_11" o:spid="_x0000_s2051" style=';left:0;text-align:left; margin-left:760pt;margin-top:-28pt;width:28pt;height:42pt;z-index:7' fillcolor="gray"/><![endif]--><!--[if gte vml 1]><v:rect id="Rectangle_x0020_17" o:spid="_x0000_s2052" style=';left:0;text-align:left; margin-left:760pt;margin-top:526pt;width:28pt;height:42pt;z-index:8' fillcolor="gray"/><![endif]--><!--[if gte vml 1]><v:shape id="Quad_x0020_Arrow_x0020_1" o:spid="_x0000_s2053" type="#_x0000_t202" style=';left:0; text-align:left;margin-left:788pt;margin-top:-28pt;width:26pt;height:596pt; z-index:1;v-text-anchor:middle'> <v:textbox style='layout-flow:vertical; <![if RotText]><![if !mso]> <table cellpadding=0 cellspacing=0 width="100%"> <tr> <td><![endif]> <div> <p style='text-align:justify;text-justify:distribute-all-lines'><span style='font-family:宋体; Calibri'>…………○…………外…………○…………装…………○…………订…………○…………线…………○…………</span></p> </div> <![if !mso]></td> </tr> </table> <![endif]><![endif]></v:textbox> </v:shape><![endif]--></span></p>
</div>
<div style='
<p style='border:none;<span lang=EN-US><!--[if gte vml 1]><v:shape id="Quad_x0020_Arrow_x0020_16" o:spid="_x0000_s2054" type="#_x0000_t202" style=';left:0;text-align:left; margin-left:-46pt;margin-top:-28pt;width:26.05pt;height:596pt;z-index:6; v-text-anchor:middle'> <v:textbox style='layout-flow:vertical; <![if RotText]><![if !mso]> <table cellpadding=0 cellspacing=0 width="100%"> <tr> <td><![endif]> <div> <p style='text-align:justify;text-justify:distribute-all-lines'><span style='font-family:宋体; Calibri'>…………○…………内…………○…………装…………○…………订…………○…………线…………○…………</span></p> </div> <![if !mso]></td> </tr> </table> <![endif]><![endif]></v:textbox> </v:shape><![endif]--><!--[if gte vml 1]><v:shape id="Quad_x0020_Arrow_x0020_15" o:spid="_x0000_s2055" type="#_x0000_t202" style=';left:0; text-align:left;margin-left:-74pt;margin-top:-28pt;width:28.05pt;height:596pt; z-index:4;v-text-anchor:middle' fillcolor="#d8d8d8"> <v:textbox style='layout-flow:vertical; <![if RotText]><![if !mso]> <table cellpadding=0 cellspacing=0 width="100%"> <tr> <td><![endif]> <div> <p align=center style='text-align:center'><span style='font-family:宋体; Calibri'>学校:</span><span lang=EN-US>___________</span><span style='font-family:宋体; Calibri'>姓名:</span><span lang=EN-US>___________</span><span style='font-family:宋体; Calibri'>班级:</span><span lang=EN-US>___________</span><span style='font-family:宋体; Calibri'>考号:</span><span lang=EN-US>___________</span></p> </div> <![if !mso]></td> </tr> </table> <![endif]><![endif]></v:textbox> </v:shape><![endif]--><!--[if gte vml 1]><v:rect id="Rectangle_x0020_14" o:spid="_x0000_s2056" style=';left:0;text-align:left; margin-left:-74pt;margin-top:-28pt;width:28.05pt;height:42pt;z-index:9' fillcolor="gray"/><![endif]--><!--[if gte vml 1]><v:rect id="Rectangle_x0020_13" o:spid="_x0000_s2057" style=';left:0;text-align:left; margin-left:-74pt;margin-top:526pt;width:28.05pt;height:42pt;z-index:10' fillcolor="gray"/><![endif]--><!--[if gte vml 1]><v:shape id="Quad_x0020_Arrow_x0020_12" o:spid="_x0000_s2058" type="#_x0000_t202" style=';left:0; text-align:left;margin-left:-100pt;margin-top:-28pt;width:26.05pt;height:596pt; z-index:2;v-text-anchor:middle'> <v:textbox style='layout-flow:vertical; <![if RotText]><![if !mso]> <table cellpadding=0 cellspacing=0 width="100%"> <tr> <td><![endif]> <div> <p style='text-align:justify;text-justify:distribute-all-lines'><span style='font-family:宋体; Calibri'>…………○…………外…………○…………装…………○…………订…………○…………线…………○…………</span></p> </div> <![if !mso]></td> </tr> </table> <![endif]><![endif]></v:textbox> </v:shape><![endif]--></span></p>
</div>
<div style='
<p align=center style='text-align:center'><span style='font-family:宋体;第</span><!--[if supportFields]><span lang=EN-US><span style='</span> =<span style='" PAGE "'><span style='18</span></span>*2-1 <span style='</span></span><![endif]--><span lang=EN-US><span style='35</span></span><!--[if supportFields]><span lang=EN-US><span style='</span></span><![endif]--><span style='font-family:宋体;页</span> <span style='font-family:宋体;共</span><!--[if supportFields]><span lang=EN-US><span style='</span> =<span style='" SECTIONPAGES "'><span style='18</span></span>*2<span style=' </span><span style='</span></span><![endif]--><span lang=EN-US><span style='36</span></span><!--[if supportFields]><span lang=EN-US><span style='</span></span><![endif]--><span style='font-family:宋体;页</span><span lang=EN-US><span style=' </span></span><span style='font-family:宋体; 第</span><!--[if supportFields]><span lang=EN-US><span style='</span> =<span style='" PAGE "'><span style='18</span></span>*2 <span style='</span></span><![endif]--><span lang=EN-US><span style='36</span></span><!--[if supportFields]><span lang=EN-US><span style='</span></span><![endif]--><span style='font-family:宋体;页</span> <span style='font-family:宋体;共</span><!--[if supportFields]><span lang=EN-US><span style='</span> =<span style='" SECTIONPAGES "'><span style='18</span></span>*2<span style=' </span><span style='</span></span><![endif]--><span lang=EN-US><span style='36</span></span><!--[if supportFields]><span lang=EN-US><span style='</span></span><![endif]--><span style='font-family:宋体;页</span></p>
</div>
<div style='
<p align=center style='text-align:center'><span style='font-family:宋体;第</span><!--[if supportFields]><span lang=EN-US><span style='</span> =<span style='" PAGE "'><span style='1</span></span>*2-1 <span style='</span></span><![endif]--><span lang=EN-US><span style='1</span></span><!--[if supportFields]><span lang=EN-US><span style='</span></span><![endif]--><span style='font-family:宋体;页</span> <span style='font-family:宋体;共</span><!--[if supportFields]><span lang=EN-US><span style='</span> =<span style='" SECTIONPAGES "'><span style='18</span></span>*2<span style=' </span><span style='</span></span><![endif]--><span lang=EN-US><span style='36</span></span><!--[if supportFields]><span lang=EN-US><span style='</span></span><![endif]--><span style='font-family:宋体;页</span><span lang=EN-US><span style=' </span></span><span style='font-family:宋体; 第</span><!--[if supportFields]><span lang=EN-US><span style='</span> =<span style='" PAGE "'><span style='1</span></span>*2 <span style='</span></span><![endif]--><span lang=EN-US><span style='2</span></span><!--[if supportFields]><span lang=EN-US><span style='</span></span><![endif]--><span style='font-family:宋体;页</span> <span style='font-family:宋体;共</span><!--[if supportFields]><span lang=EN-US><span style='</span> =<span style='" SECTIONPAGES "'><span style='18</span></span>*2<span style=' </span><span style='</span></span><![endif]--><span lang=EN-US><span style='36</span></span><!--[if supportFields]><span lang=EN-US><span style='</span></span><![endif]--><span style='font-family:宋体;页</span></p>
</div>
<div style='
<div style='border:none;border-bottom:solid windowtext 1.0pt; padding:0cm 0cm 1.0pt 0cm'>
<p lang=EN-US><o:p> </o:p></span></p>
</div>
</div>
<div style='
<p lang=EN-US><o:p> </o:p></span></p>
</div>
</body>
</html>filelist.xml文件:
<xml xmlns:o="urn:schemas-microsoft-com:office:office">
<o:File HRef="header.htm"/>
<o:File HRef="filelist.xml"/>
</xml>
答案
-
你好,
关于php coding 问题,我建议你到php forum 去提问,相信在那里你可以得到更专业的回答。
http://www.sitepoint.com/forums/forumdisplay.php?34-PHP
http://www.webdeveloper.com/forum/forumdisplay.php?16-PHP
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- 已标记为答案 Pengzhen Song 2014年8月4日 12:17