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
With the ConvertDocuments solution selected in Solution Explorer in Visual Studio 2010, click Build and then click Deploy Solution.
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/.
Click Add document and then add 1 or more Word documents to the document library.
Click Site Actions on the SharePoint Server 2010 ribbon, and then click New Page.
In the New Page dialog, under New page name:, enter a name for the custom page, for example Convert Document Library.
Click Create to add the custom page. The page opens in editing mode.
Under the Editing Tools tab group, click Insert and then click Web Part.
In the Categories list, click Custom. Under Web Parts, VisualWebPart1 appears.
Select VisualWebPart1 and then click Add.
Click the Save & Close button next to the Navigate Up button on the ribbon.
When the page refreshes, click Convert Document Library on the Web Part.
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
Concepts
Walkthrough: Creating a Web Part That Uses Word Automation Services