다음을 통해 공유


Step 3: Build and Deploy the Web Part Solution

Applies to: SharePoint Server 2010

This topic shows how to deploy and use the Word Automation Services Web Part solution example.

Building and Deploying the Solution

Once the solution has been deployed, add the Web Part to a SharePoint Server page and click the button on the Web Part to convert all Microsoft Word documents in the input library to PDF files in the output library.

To build and deploy the solution

  1. With the ConvertDocuments solution selected in Solution Explorer in Visual Studio 2010, click Build and then click Deploy Solution.

  2. On the SharePoint Server site where the solution is deployed, navigate to the input document library created in Step 1 of this walkthrough. For example, http://wordserver/demo/input/.

  3. Click Add document and then add 1 or more Word documents to the document library.

  4. Click Site Actions on the SharePoint Server 2010 ribbon, and then click New Page.

  5. In the New Page dialog, under New page name:, enter a name for the custom page, for example Convert Document Library.

  6. Click Create to add the custom page. The page opens in editing mode.

  7. Under the Editing Tools tab group, click Insert and then click Web Part.

  8. In the Categories list, click Custom. Under Web Parts, VisualWebPart1 appears.

  9. Select VisualWebPart1 and then click Add.

  10. Click the Save & Close button next to the Navigate Up button on the ribbon.

  11. When the page refreshes, click Convert Document Library on the Web Part.

  12. Navigate to the output library for the solution created in Step 1 of this walkthrough. For example, http://wordserver/demo/output/.

When the solution runs, documents in the input document library are converted to PDF. If the input library contains subfolders, they are replicated in the output library so that files are put in the same relative locations as the original files.

See Also

Tasks

Step 1: Set Up the Visual Studio 2010 Project For the Web Part Solution

Step 2: Code the Web Part

Concepts

Walkthrough: Creating a Web Part That Uses Word Automation Services