JavaScirpt调用OpenOffice
风小黑 2013-07-03 05:33:42 如题在html中用javascript可以对OpenOffice调用吗?
如果是微软的office则可以调用Excel,方法如下:
var xlApp = new ActiveXObject("EXCEL.APPLICATION");
var xlBook = xlApp.WorkBooks.open("http://" + document.URL.split('/')[2]+"/xls/matstorenowage.xls"); -----引用模板
var xlSheet1 = xlBook.ActiveSheet;
xlSheet1.Application.Visible = true;
------以下对Excel中的sheet操作----
xlSheet1.Protect("poushun");
xlApp.DisplayAlerts = false;
xlApp.Quit();
请各位有使用过的引引路,找了好久,网上几乎没有类似的资料可以参考的.谢谢啦~!