edit the office file online
The javascript code is
The cilent must be the office xp or higher.
I am find the other soulation, that use the office add-in in clients, when i finished it ,i will place it here.
1
<javascript language="javascript">
2
function openOffice(fileurl)
3
{
4
var openDocObj = new ActiveXObject("SharePoint.OpenDocuments.1");
5
openDocObj.EditDocument(fileurl);
6
}
7
</script>
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
2
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
3
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
4
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
5
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
6
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif)
7
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
The cilent must be the office xp or higher.
I am find the other soulation, that use the office add-in in clients, when i finished it ,i will place it here.