asp 在IE中将打开的word文档修改后直接保存到服务器?
有哪位大虾知道,在asp中,如果在IE里打开了由a href链接的word文档(该文档是保存在服务器的硬盘上的),进行修改后,怎么可以不用先保存到本地再上传,而直接保存在服务器中?
------解决方案--------------------word控件来实现,
function TANGER_OCX_SaveDoc()
{
var returnValue;
TANGER_OCX_OBJ = document.all.item( "oframe ");
TANGER_OCX_OBJ.HttpInit();
TANGER_OCX_OBJ.HttpAddPostString( "news_id ", " <%=news_id_max%> ");
TANGER_OCX_OBJ.HttpAddPostString( "news_dept ",document.all.news_dept.value);
TANGER_OCX_OBJ.HttpAddPostString( "title ",document.all.title.value);
TANGER_OCX_OBJ.HttpAddPostString( "release_date ",document.all.release_date.value);
TANGER_OCX_OBJ.HttpAddPostString( "news_from ",document.all.news_from.value);
//TANGER_OCX_OBJ.HttpAddPostString( "image_explain ",document.all.image_explain.value);
TANGER_OCX_OBJ.HttpAddPostString( "news_kind ",document.all.news_kind.value);
TANGER_OCX_OBJ.HttpAddPostString( "news_flag ",document.all.news_flag.value);
TANGER_OCX_OBJ.HttpAddPostString( "dept_code ",document.all.dept_code.value);
TANGER_OCX_OBJ.HttpAddPostString( "news_grade ",document.all.news_grade.value);
TANGER_OCX_OBJ.HttpAddPostCurrFile( "file ", "test.doc ");
returnValue = TANGER_OCX_OBJ.HttpPost( " <%=localhost%> /weboaHC/news/AddNews0.asp ");
if (returnValue== " ")
{
alert( "±£´æ³É¹¦£¡ ");
}else{
alert( "±£´æʧ°Ü£¡ ");
}
}
function TANGER_OCX_OpenDoc()
{
TANGER_OCX_OBJ = document.all.item( "oframe ");
//alert( " <%=docpath%> ")
TANGER_OCX_OBJ.Open( " <%=docpath%> ",true)
}
function TANGER_OCX_CloseDoc()
{
ANGER_OCX_OBJ = document.all.item( "oframe ");
TANGER_OCX_OBJ.Close();
}
利用这个传值写进数据库