Configuración del comportamiento predeterminado para abrir documentos habilitados por el explorador (Office Web Apps)
Publicado el: 2012/11/13
Summary: Learn how to configure the default open behavior for Office documents in SharePoint site collections and document libraries.
Se aplica a: Office Web Apps
Audience: IT Professionals
To quickly open a document in a library, you can choose (single-click) it. How the document opens depends on several factors including the type of file and the current OpenInClient feature settings of the library or site collection. You can change how Office documents open when you choose them, whether they open in a client application or in the browser.
To configure the default open behavior for Office documents where you have SharePoint 2013 configured to use Office Web Apps Server, follow the instructions in this article.
"SharePoint 2013," in this article, refers to SharePoint Server 2013 and SharePoint Foundation 2013 unless otherwise noted.
In this article:
How browser-enabled documents are opened from SharePoint 2013 libraries
In SharePoint 2013, you can configure whether browser-enabled documents are opened in a client application or in the browser. A browser-enabled document is a document that can be viewed or edited directly in the browser and on the client computer. An example of a browser-enabled document is a Word document in .docx file format.
By default, after SharePoint 2013 is configured to use Office Web Apps Server, Word, PowerPoint, Excel, and OneNote files are opened in the browser. There are two ways to change the default behavior to allow client applications to open files directly:
-
For the SharePoint 2013 farm You can adjust the default open behavior on a per-file-type basis for the SharePoint 2013 farm by using the New-SPWOPIBinding and Set-SPWOPIBindingWindows PowerShell cmdlets.
-
On site collections or document libraries Site collection administrators and users can specify whether Office files are opened in the client application if it is installed. Users can change this setting in the document library properties, and site collection administrators can change this setting in Site Collection Administration or by using the Install-SPFeature cmdlet to install the OpenInClient feature. You can configure the OpenInClient feature in Site Collection Administration or by using the SPFeature cmdlet in Windows PowerShell. For more information, see Install-SPFeature.
The following table shows how documents open in SharePoint. It varies, depending on whether the OpenInClient feature is present, and if it is present, whether it is enabled or disabled.
How OpenInClient feature affects how Office documents are opened
| OpenInClient feature present | OpenInClient feature enabled | SharePoint 2013 configured to use Office Web Apps Server | Default open behavior of Office documents in client application or browser |
|---|---|---|---|
| No | No | No | Client application |
| No | No | Yes | Browser |
| Yes | Yes | Yes | Client application |
| Yes | No | Yes | Browser |
Nota: |
|---|
| Configuring the default open behavior for browser-enabled documents won’t affect whether users can use Check Out and Send To features in SharePoint 2013 to download documents. For information about how to configure check out, download, and view permissions in SharePoint 2013, see Planear los permisos para los sitios y el contenido en SharePoint 2013. |
Configure the default open behavior for documents
You can change the default behavior to allow client applications to open files directly by using one of the following procedures:
-
To set the default open behavior for site collections by using Windows PowerShell
-
To set the default open behavior for a document library by using the document library settings page
-
To set the default open behavior for IRM-protected document libraries by using Windows PowerShell
Nota: |
|---|
| The procedures in this article use the Consola de administración de SharePoint 2013 to run SharePoint cmdlets. If you choose to use the Windows PowerShell console, you must add the Microsoft.SharePoint.PowerShell snap-in by using the Add-PSSnapin cmdlet. For more information about how to use Windows PowerShell with SharePoint 2013, see Usar Windows PowerShell para administrar SharePoint 2013. |
Nota: |
|---|
| You can complete tasks in all Conjuntos de aplicaciones de Office 2013 by using a mouse, keyboard shortcuts, or touch. For information about how to use keyboard shortcuts and touch with Office products and services, see the following resources: |
To set the default open behavior for site collections
-
In the SharePoint site collection, choose the Settings icon, and then choose Site Settings.
-
On the Site Settings page, under Site Collection Administration, choose Site Collection Features.
-
On the Features page, for the Open Documents in Client Applications by Default feature, choose Activate (OpenInClient feature is enabled) to open documents in the client application. Choose Deactivate (OpenInClient feature is disabled) to open documents in the browser.
To set the default open behavior for site collections by using Windows PowerShell
-
Verify that you have the following memberships:
-
securityadmin fixed server role on the SQL Server instance.
-
db_owner fixed database role on all databases that are to be updated.
-
Administrators group on the server on which you are running Windows PowerShell cmdlets.
-
You must read about_Execution_Policies.
-
Add memberships that are required beyond the minimums above.
An administrator can use the Add-SPShellAdmin cmdlet to grant permissions to use SharePoint 2013 cmdlets.
Nota: If you do not have permissions, contact your Setup administrator or SQL Server administrator to request permissions. For additional information about Windows PowerShell permissions, see Permisos and Add-SPShellAdmin.
-
-
To open an elevated Consola de administración de SharePoint 2013 in Windows Server 2008 R2
-
On the Start menu, select All Programs.
-
Select Microsoft SharePoint 2013 Products.
-
Choose SharePoint 2013 Management Shell and display the short-cut menu (right-click).
-
From the short-cut menu, choose Run as administrator.
-
-
To open an elevated Consola de administración de SharePoint 2013 in Windows Server 2012
-
Swipe in from the edge of the screen to show the charms and then choose Search to see all the applications that are installed on the computer.
-
Choose (right-click) SharePoint 2013 Management Shell to display the app bar.
-
In the app bar, select Run as administrator.
-
-
At the Windows PowerShell command prompt, type one of the following commands:
-
To enable the OpenInClient feature for a specific site collection (open documents in the client application), type the following command:
Enable-SPFeature 8A4B8DE2-6FD8-41e9-923C-C7C3C00F8295 -url <SiteCollURL>
Where <SiteCollURL> is the URL of the site collection.
-
To enable the OpenInClient feature for all site collections (open documents in the client application), type the following command:
Get-SPSite -limit ALL |foreach{ Enable-SPFeature 8A4B8DE2-6FD8-41e9-923C-C7C3C00F8295 -url $_.URL } -
To disable the OpenInClient feature for a specific site collection (open documents in the browser), type the following command:
Disable-SPFeature 8A4B8DE2-6FD8-41e9-923C-C7C3C00F8295 -url <SiteCollURL>
Where <SiteCollURL> is the URL of the site collection.
-
To disable the OpenInClient feature for all site collections (open documents in the browser), type the following command:
Get-SPSite -limit ALL |foreach{ Disable-SPFeature 8A4B8DE2-6FD8-41e9-923C-C7C3C00F8295 -url $_.URL }
-
To set the default open behavior for a document library by using the document library settings page
-
On the document library page, choose the LIBRARY tab.
-
In the Settings group, choose Library Settings.
-
On the Document Library Settings page, choose Advanced settings.
-
On the Advanced Settings page, in Opening Document in the Browser, select one of the following options:
Open in the client application When a user chooses a document in this library, the document will open in the corresponding client application if it's available.
Open in the browser When a user chooses a document in this library, the document will open in the web browser in the web app for that document type. When the document is opened in the web app, the user can then decide to open the document in the client application.
Use the server default When a user chooses a document in this library, the document will open by using the default open behavior that is specified for the server on which SharePoint 2013 is installed.
To set the default open behavior for IRM-protected document libraries by using Windows PowerShell
-
Verify that you have the following memberships:
-
securityadmin fixed server role on the SQL Server instance.
-
db_owner fixed database role on all databases that are to be updated.
-
Administrators group on the server on which you are running Windows PowerShell cmdlets.
-
You must read about_Execution_Policies.
-
Add memberships that are required beyond the minimums above.
An administrator can use the Add-SPShellAdmin cmdlet to grant permissions to use SharePoint 2013 cmdlets.
Nota: If you do not have permissions, contact your Setup administrator or SQL Server administrator to request permissions. For additional information about Windows PowerShell permissions, see Permisos and Add-SPShellAdmin.
-
-
To open an elevated Consola de administración de SharePoint 2013 in Windows Server 2008 R2:
-
On the Start menu, select All Programs.
-
Select Microsoft SharePoint 2013 Products.
-
Choose SharePoint 2013 Management Shell and display its short-cut menu (right-click).
-
From the short-cut menu, choose Run as administrator..
-
-
To open an elevated Consola de administración de SharePoint 2013 in Windows Server 2012:
-
Swipe in from the edge of the screen to show the charms and then choose Search to see all the applications that are installed on the computer.
-
Choose SharePoint 2013 Management Shell and display its app bar (right-click).
-
In the app bar, select Run as administrator.
-
-
At the Windows PowerShell command prompt, type the following command:
Get-SPWeb -site <SiteCollURL> | % {$_.Lists} | where {$_.IrmEnabled -eq $true} | % {$_.DefaultItemOpen =[Microsoft.Sharepoint.DefaultItemOpen]::<DefaultItemOpenSetting>; $_.Update()}Where:
-
<SiteCollURL> is the URL of the site collection where the document libraries reside.
-
<DefaultItemOpenSetting> is a DefaultItemOpen enumeration value that specifies the default open behavior. Use PreferClient to open documents in their associated client application (if available). Use Browser to open documents in the browser.
-
Historial de cambios
| Fecha | Descripción |
|---|---|
| 2012/11/13 | Publicación inicial |
