다음과 같이 코드 코드를 복사하십시오.
<!
<html xmlns = "http://www.w3.org/1999/xhtml">
<헤드>
<meta http-equiv = "content-type"content = "text /html; charset = gb2312" /> />
<title> 비 -타이틀 문서 </title>
<script language = "javaScript">
기능 자동화 WORDOUTOPAGIGAGING (접두사, 카운트)
{{
var wont = new ActiveXobject ( "Word.application");
var odc = owd.documements.add ();
ODC.showgramcaticalrrs = false; // 문법 검사
ODC.showspellinger = false; // 철자 검사를 차단합니다
var Orange = ODC.Range (0,1);
for (i = 0; i <count; i ++)
{{
var sel = document.body.creatextrange ();
var tableName = 접두사+i;
var table = document.getElementById (TableEname)
sel.MovetoElementText (표);
sel.select ();
sel.execcommand ( "copy");
owd.selection.paste ();
Owd.Selection.insertban (); // 페이징 문자 삽입
}
//owd.ActiveDocument.ActiveWindow.view.type=3 // 브라우징 모드를 설정합니다
owd. visible = true;
};
기능 AutomateExcel (접두사)
{{
var Empe = Document.getElementById ( "AutomateExcel");
var orangeref = document.body.creatextrange ();
Orangef.movetoeelementtext (eltable);
Orangef.execcommand ( "copy");
노력하다 {
var appexcel = new ActiveXobject ( "Excel.application");
} catch (e)
{{
경고 ( "无法调用 사무실 对象 对象, 请确保您的机器已安装了 사무실 并已将本系统的站点名加入到 并已将本系统的站点名加入到 ee 的信任站点列表中!");
반품;
}
appexcel.visible = true;
appexcel.works.add ().
AppExcel.workbooks (1) .WorkSheets.Item (1) .columns ( "A : A").
//appexcel.workbooks (1) .WorkSheets.Item (1) .columns.com.com
appexcel = null
};
</스크립트>
</head>
<body>
<입력 유형 = "버튼"value = "단어 자동 페이징으로 내보내기
<입력 유형 = "버튼"value = "Excel 제어 열 폭으로 내보내기
<div id = "AutomateExcel">
<table class = tabp id = "table0"CellSpacing = 0 CellPadding = 2 Align = Center Border = 1>
<tr>
<td align = "center"> title 0 </td>
</tr>
<tr>
<td align = "center"> content 0 </td>
</tr>
</테이블>
<br>
<table class = tabp id = "table1"CellSpacing = 0 CellPadding = 2 Align = Center Border = 1>
<tr>
<td align = "center"> title 1 </td>
</tr>
<tr>
<td align = "center"> content 1 </td>
</tr>
</테이블>
<br/>
<table class = tabp id = "table"CellSpacing = 0 CellPadding = 2 Align = Center Border = 1>
<tr>
<td align = "center"> title 2 </td>
</tr>
<tr>
<td align = "center"> content 2 </td>
</tr>
</테이블>
<br/>
<table class = tabp id = "table3"CellSpacing = 0 CellPadding = 2 Align = Center Border = 1>
<tr>
<td align = "center"> title 3 </td>
</tr>
<tr>
<td align = "center"> content 3 </td>
</tr>
</테이블>
<br/>
<table class = tabp id = "table4"CellSpacing = 0 CellPadding = 2 Align = Center Border = 1>
<tr>
<td align = "center"> title 4 </td>
</tr>
<tr>
<td align = "center"> content 4 </td>
</tr>
</테이블>
<br/>
</div>
</body>
</html>