|
Urgent question about exporting Word or Excel? ? ?
function AllAreaExcel ()
{
var oXL = new ActiveXObject ("Excel.Application");
var oWB = oXL.Workbooks.Add ();
var oSheet = oWB.ActiveSheet;
var sel = document.body.createTextRange ();
sel.moveToElementText (tableid);
sel.select ();
sel.execCommand ("Copy");
oSheet.Paste ();
oXL.Visible = true;
}
Is this the exported code? ? ?
<Div id = tableid> in the program
..... what needs to be exported
</ div>
Different WEB systems, but one of them can be exported, but the other cannot be executed.
But after the installation, I had such a problem, can the master tell me why? ? ?
The following is the error prompt
Automation server cannot create objects |
|