Примечание.
Для доступа к этой странице требуется авторизация. Вы можете попробовать войти или изменить каталоги.
Для доступа к этой странице требуется авторизация. Вы можете попробовать изменить каталоги.
Each Службы Excel trusted location in the Shared Services Provider (SSP) has an AllowUdfs flag.
Примечание.
[!Примечание] The AllowUdfs flag is denoted by the User-defined functions allowed option on the Excel Services Trusted File Locations page.
The default AllowUdfs value is false. If the AllowUdfs value is set to false in a particular trusted location, the workbooks in that trusted location are not allowed to call UDFs.
In order to allow UDFs to be called from a specific trusted location, you set the AllowUdfs value to true.If the AllowUdfs value is false when a session is started on a workbook that has UDF calls in this trusted location, the UDF calls will fail. If you change the AllowUdfs value to true after a session has started, the UDF calls will also fail. This is because changes in the AllowUdfs flag take effect on the next session, after the configuration database has been updated.You can get around this by restarting the sessionfor example, by selecting Reload Workbook in Веб-клиент Excel.
Осторожностью: Если вы решили сбросить Microsoft IIS (IIS), все текущие сеансы будут завершены.
Включение пользовательских функций
To do the following steps, you need a computer that has Microsoft SharePoint Server 2010 installed.
Включение пользовательских функций
В меню Пуск выберите пункт Все программы.
Point to Microsoft Office Server and click SharePoint Central Administration.
On the Quick Launch, click your Shared Services Provider (SSP) linkfor example, "SharedServices1"to view the Shared Services home page for that particular SSP.
Under Excel Services Settings, click User-defined functions.
On the Excel Services User-Defined Functions page, click Add User-Defined Function to open the Excel Services Add User-Defined Function Assembly page.
In the Assembly box, type the path to the UDF assembly. Например, C:\MyUdfFolder\MyUdf.dll.
Under Assembly Location, click Local file.
Примечание.
[!Примечание] The Local file option will be replaced with File path in future releases of Службы Excel. If you see File path, select that instead.
Under Enable Assembly, the Assembly enabled check box should be selected by default.
Нажмите кнопку ОК.
Разрешение вызовов пользовательских функций
Разрешение вызовов пользовательских функций из рабочей книги
Откройте страницу "Добавить надежное расположение файлов" или "Изменить надежное расположение файлов" служб Excel для добавления нового или изменения существующего надежного расположения соответственно.
Примечание.
Дополнительные сведения о доверии расположению см. в разделе Практическое руководство. Доверие к расположению.
Under Allow User-Defined Functions, select User-defined functions allowed to allow UDFs to be called from workbooks stored in this trusted location.
Нажмите кнопку ОК.
См. также
- Step 3: Deploying and Enabling UDFs
- How to: Create a UDF That Calls a Web Service
- Как сделать расположение доверенным
- Пошаговое руководство по разработке UDF с управляемым кодом
- Frequently Asked Questions About Excel Services UDFs
- Understanding Excel Services UDFs
- Excel Services Alerts
- Известные проблемы со службами Excel и советы по их устранению
- Советы по использованию служб Excel