//获取页面内容
//调用word组件
//生成新文件
var table=document.getElementByIdx_x('printTable');
row=table.rows.length;
column=table.rows(1).cells.length;
var word = new
ActiveXObject("Word.Application");
word.Application.Visible =
true;
word.Selection.Text ="<%=reportTitle%>";
var
mydoc=word.Documents.Add('',0,0);
myRange
=mydoc.Range(0,1);
var
sel=document.body.createTextRange();
sel.moveToElementText(table);
sel.select();
sel.execCommand('Copy');
myRange.Paste();