关于用asp操作word表格的有关问题
关于用asp操作word表格的问题?
<%Dim fso, MyFile
Set fso = CreateObject( "Scripting.FileSystemObject ")
sFileName = "temp.doc "
Set MyFile = fso.CreateTextFile(Server.MapPath( ". ") & "\word\ "&sFileName, True)
myString= " <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 rel=File-List href=““Doc1.files/filelist.xml”“> <title> 石油化工学院教师业务档案 </title> <!--[if gte mso 9]> <xml> <o:DocumentProperties> <o:Author> lyz </o:Author> <o:LastAuthor> lyz </o:LastAuthor> <o:Revision> 2 </o:Revision> <o:TotalTime> 48 </o:TotalTime> <o:Created> 2004-03-27T04:56:00Z </o:Created> <o:LastSaved> 2004-03-27T04:56:00Z </o:LastSaved> <o:Pages> 1 </o:Pages> <o:Words> 92 </o:Words> <o:Characters> 527 </o:Characters> <o:Company> 602 </o:Company> <o:Lines> 4 </o:Lines> <o:Paragraphs> 1 </o:Paragraphs> <o:CharactersWithSpaces> 618 </o:CharactersWithSpaces> <o:Version> 11.5606 </o:Version> </o:DocumentProperties> </xml> <![endif]--> <!--[if gte mso 9]> <xml> <w:WordDocument> <w:View> Print </w:View> <w:SpellingState> Clean </w:SpellingState> <w:GrammarState> Clean </w:GrammarState> <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:BrowserLevel> MicrosoftInternetExplorer4 </w:BrowserLevel> </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 135135232 16 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 135135232 16 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:12.0pt; font-family:”“Times New Roman”“; mso-fareast-font-family:宋体; mso-font-kerning:1.0pt;} span.SpellE {mso-style-name:”“““; mso-spl-e:yes;} /* Page Definitions */ @page {mso-page-border-surround-header:no; mso-page-border-surround-footer:no;} @page Section1 {size:595.3pt 841.9pt; margin:72.0pt 70.9pt 72.0pt 70.9pt; mso-header-margin:42.55pt; mso-footer-margin:49.6pt; mso-paper-source:0;
<%Dim fso, MyFile
Set fso = CreateObject( "Scripting.FileSystemObject ")
sFileName = "temp.doc "
Set MyFile = fso.CreateTextFile(Server.MapPath( ". ") & "\word\ "&sFileName, True)
myString= " <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 rel=File-List href=““Doc1.files/filelist.xml”“> <title> 石油化工学院教师业务档案 </title> <!--[if gte mso 9]> <xml> <o:DocumentProperties> <o:Author> lyz </o:Author> <o:LastAuthor> lyz </o:LastAuthor> <o:Revision> 2 </o:Revision> <o:TotalTime> 48 </o:TotalTime> <o:Created> 2004-03-27T04:56:00Z </o:Created> <o:LastSaved> 2004-03-27T04:56:00Z </o:LastSaved> <o:Pages> 1 </o:Pages> <o:Words> 92 </o:Words> <o:Characters> 527 </o:Characters> <o:Company> 602 </o:Company> <o:Lines> 4 </o:Lines> <o:Paragraphs> 1 </o:Paragraphs> <o:CharactersWithSpaces> 618 </o:CharactersWithSpaces> <o:Version> 11.5606 </o:Version> </o:DocumentProperties> </xml> <![endif]--> <!--[if gte mso 9]> <xml> <w:WordDocument> <w:View> Print </w:View> <w:SpellingState> Clean </w:SpellingState> <w:GrammarState> Clean </w:GrammarState> <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:BrowserLevel> MicrosoftInternetExplorer4 </w:BrowserLevel> </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 135135232 16 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 135135232 16 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:12.0pt; font-family:”“Times New Roman”“; mso-fareast-font-family:宋体; mso-font-kerning:1.0pt;} span.SpellE {mso-style-name:”“““; mso-spl-e:yes;} /* Page Definitions */ @page {mso-page-border-surround-header:no; mso-page-border-surround-footer:no;} @page Section1 {size:595.3pt 841.9pt; margin:72.0pt 70.9pt 72.0pt 70.9pt; mso-header-margin:42.55pt; mso-footer-margin:49.6pt; mso-paper-source:0;