2011-07-21 17 views

答えて

1

MS Office Web Appsを使用するには、.docsファイルをSharePointにアップロードする必要があります。 deploy Office Web Appsのインストール方法を確認するには、TechNetの次の記事を参照してください。次にconfigure the default open behavior for browser-enabled documentsにしてください。

+0

をそれを行うには、これを試してみてくださいは、Java Webパーツとしてドキュメントのリストにロードし、それらではJavaScriptを使用してMS Officeの中で起動するために取得する方法はありません? – topcat3

0

プログラムで

/YOURWEB/_layouts/WordViewer.aspx?id= "here is query string (path to the document)" 

または

<SharePoint:MenuItemTemplate ID="submit1" runat="server" Text="open" ImageUrl="/_layouts/images/OpeninBrowser.gif" ClientOnClickScript="OpenWebApps('%Url%'); return false;"> 

function OpenWebApps(url) { 
    var ext = url.substr(url.lastIndexOf('.') + 1); // here define the extension 
    if (ext == 'docx') 
     window.open('<%= Web.Url%>'+"/_layouts/WordViewer.aspx?id="+encodeURI(url)); 
    else 
     alert('Cannot open document with this extension'); 
} 
関連する問題