<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script type="text/javascript">
function openDoc(url){
openDocObj = new ActiveXObject("SharePoint.OpenDocuments.2");
openDocObj.EditDocument(url);
}
</script>
</head><body>
<a href="javascript:void(0);" onclick="openDoc('http://localhost/doc/test.doc');">打开</a>
</body>
</html>
-----------------------------------
这样在IIS下可以保存到服务器,但是在Apache下只能以只读打开,不能远程保存.
各位有什么解决办法没?
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script type="text/javascript">
function openDoc(url){
openDocObj = new ActiveXObject("SharePoint.OpenDocuments.2");
openDocObj.EditDocument(url);
}
</script>
</head><body>
<a href="javascript:void(0);" onclick="openDoc('http://localhost/doc/test.doc');">打开</a>
</body>
</html>
-----------------------------------
这样在IIS下可以保存到服务器,但是在Apache下只能以只读打开,不能远程保存.
各位有什么解决办法没?
{
/*
@GNU:GPL
@author axgle
@date 2005.4.20
*/ function start()
{
ob_start();
print'xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">'; } function save($path)
{ print "";
$data = ob_get_contents(); ob_end_clean(); $this->wirtefile ($path,$data);
} function wirtefile ($fn,$data)
{ $fp=fopen($fn,"wb");
fwrite($fp,$data);
fclose($fp);
} } ?> test.php:
include("word.php");
$word=new word; $word->start();
?> 網上代碼,未經測試,如有意外,楖不負責
首先word转成所见即所得的html在页面上显示
然后通过所见即所得编辑器编辑
保存的时候,通过服务器端组件把html转成word1.word不能完美转换成html
2.word是商业软件,我不知道有没有这种转换程序供你使用