Office 문서 온라인 편집 실현 방법
 
wApp = new ActiveXObject("Word.Application.11"); 
wApp.Visible = true ; 
wApp.Documents.Open( url ); 
if( trackRevisions ){ //          
wApp.ActiveDocument.TrackRevisions = true ; 
wApp.ActiveDocument.ShowRevisions = false ; 
}else 
{ 
wApp.ActiveDocument.TrackRevisions = false ; 
wApp.ActiveDocument.ShowRevisions = false ; 
} 
wApp.ActiveDocument.Application.UserName= Global_CurrentUserName; 
 
function Document_Edit2( url ) 
{ 
if( __OpenDocuments == null ) 
{ 
try{ 
__OpenDocuments = new ActiveXObject("SharePoint.OpenDocuments.3"); //for office 2007 
}catch(e){} 
if( __OpenDocuments == null || typeof(__OpenDocuments) == "#ff0000" ) 
{ 
try{ 
__OpenDocuments = new ActiveXObject("SharePoint.OpenDocuments.2"); //for office 2003 
}catch(e){} 
} 
if( __OpenDocuments == null || typeof(__OpenDocuments) == "undefined" ) 
{ 
alert( "   Word(2003     )" ); 
return ; 
} 
} 
// openDocObj.ViewDocument("http://www.abc.com/documents/sample.doc");, "Word.Document" 
//openDocObj.CreateNewDocument("http://www.abc.com/documents/sampleTemplate.dot", "http://www.abc.com/documents/"); 
var result = __OpenDocuments.EditDocument( url , "Word.Document" ); 
if( result == false ) 
{ 
alert( "      ." ); 
} 
} 
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
Office 365 License 자동 할당텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.