-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Microsoft SharePoint 2010 Development with Visual Studio 2010 Expert Cookbook
By :
We added metadata columns to our content type, we added a document template that provides the common format for uploading project proposals to the library, and in this recipe we will add "Approval workflow" to our content type.
Approval Workflow is out-of-the-box workflow available in the SharePoint server. The same steps will work in case you want to associate custom workflows that we developed in Chapter 2, Workflows.
You should have completed the previous recipes successfully.
If you have closed Visual Studio IDE, launch it as an administrator.
Open the previously created ProjectProposal solution.
Open
Feature1.EventReceiver.cs file and add code to associate the workflow before the content type update method in the feature's activating method. Your code should look like the following:
//Associate the document template created.
ctProjectProposal.DocumentTemplate = "/_layouts/
ProjectProposal/ProjectProposal...
Change the font size
Change margin width
Change background colour