Compartir a través de


Tutorial: Desarrollo de una UDF de código administrado

This walkthrough describes the process for developing Servicios de Excel user-defined functions (UDFs) using Microsoft Visual C#.

During this walkthrough, you will learn how to:

  • Create a project using the Microsoft Visual Studio 2005 class library project template.

  • Add a reference to Microsoft.Office.Excel.Server.Udf.dll.

  • Write UDFs for use in Servicios de Excel.

  • Create a workbook to call custom functions from cells.

  • Test and run UDFs in Servicios de Excel.

Requisitos previos

Para poder completar este tutorial, necesitará:

  • Microsoft SharePoint Server 2010

    Nota:

    [!NOTA] The easiest way to get all you need on the server is to do a basic, stand-alone install. All you need to add on top of that is a trusted location.

  • Excel

  • Visual Studio o una herramienta de desarrollo compatible con Microsoft .NET Framework similar

  • Para habilitar la ejecución del ensamblado UDF

  • Una biblioteca de documentos de SharePoint de confianza en la que almacenar un libro y permitir que el libro llame a UDF estableciendo el valor AllowUdfs en true.

  • Libro de ejemplo que llama a la UDF almacenada en una biblioteca de documentos de SharePoint de confianza

  • Permisos para ver y publicar un libro en una biblioteca de documentos de SharePoint

    Nota:

    [!NOTA] For more information about setting permissions, see the Windows SharePoint Services 3.0 documentation.

  • Para crear el libro mediante Excel

  • Para guardar el libro como un archivo .xlsx o .xlsb

    Nota:

    [!NOTA] For more information about how to trust a location, how to enable UDFs, and how to set the AllowUdfs flag, see Step 3: Deploying and Enabling UDFs.

Vea también