Step 1: Set Up the Visual Studio 2010 Project for the ECB Menu Item Solution
Applies to: SharePoint Server 2010
This topic shows how to set up the Microsoft Visual Studio 2010 project for the Word Automation Services solution.
Creating the Project
Visual Studio 2010 contains several project templates for SharePoint Server solutions. Use the following procedure to create an empty SharePoint Server project for the Word Automation Services solution.
To create the Visual Studio 2010 project
Start Visual Studio 2010 as an administrator.
Important
You must start Visual Studio 2010 as an administrator to publish the project to the SharePoint Server farm.
In Visual Studio 2010, click File, point to New, and then click Project…
In the New Project dialog box, expand Visual C#, expand SharePoint, click 2010, and then select Empty SharePoint Project.
Give the project a name, for example, ConvertItem.
Click OK to create the project.
On the SharePoint Customization Wizard page, select Deploy as a farm solution.
Important
You must choose Deploy as a farm solution because the Word Automation Services object model cannot be accessed from partially trusted code.
Click Finish.
After you create the project, you must add a reference to the Word Automation Services object model.
To add a reference to Word Automation Services
In Solution Explorer, right-click References and then click Add Reference…
In the Add Reference dialog box, click the Browse tab. The Microsoft.Office.Word.Server.dll assembly is located in the SharePoint Server 2010 \ISAPI folder, which usually has the following path:
%systemdrive%:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI
Select Microsoft.Office.Word.Server.dll and then click OK to add the reference.
Note
If you receive a warning that Microsoft.Office.Word.Server.dll requires a newer version of the .NET Framework, click Yes to add the reference. Then, add a reference to System.Web.DataVisualization, which usually has the following path:
%windir%\Assembly\GAC_MSIL\System.Web.DataVisualization\3.5.0.0__31bf3856ad364e35\
See Also
Tasks
Step 2: Create the Edit Control Block Menu Item
Step 3: Create a Web Application Page to Start Conversions
Step 4: Create a Web Application Page to Monitor Conversions
Step 5: Build and Deploy the ECB Menu Solution
Concepts
Walkthrough: Use an Edit Control Block Menu Item to Create a Conversion Job