When you create a project in Visual Studio 2010 on one of the SharePoint project templates it will take care of all the packaging for you.
But when I was working on a project with custom workflow actions, the SafeControl entry that is needed for making it work was not added to the generated manifest.xml file.
Fortunately the package designer allows you to modify the template file it uses for generating this file. So open up the package designer, switch to the “Manifest” tab and add the assembly reference in the template yourself, but this time, include the SafeControl entry:
You can safely use the SharePoint project tokens in there as well, but only for the SafeControl entry. When you put it into the Assembly entry, the package generator won’t understand it and will add another assembly reference for the project output:











CodePlex project for Word Automation Services
I’ve just published the first release for a CodePlex project I started to provide sample projects / solutions for using the Word Automation Services in SharePoint 2010.
Word Automation Services allow you to convert document to and from different formats.
File formats the service can read:
File formats the service can write:
(source)
As far as I’ve found out, there are no UI features available out-of-the-box to use these services, so I’ve decided to create some. The first one is a custom workflow action you can use in SharePoint Designer to convert a document to many of the supported
formats.
In the workflow designer you can add the “Convert Document” action:
The action is inserted into the workflow step where you can specify the url of the output file, select the output format and save options and select a variable for storing the conversion job id (which you can use later to retrieve the status, as the job runs asynchronous):
The job id is also logged into the Workflo w History Log (the second entry is from a second workflow action that logs the returned conversion job id variable):
After the job has run, which can take up to a few minutes (depending on the word automation services settings), the converted document appears in the library:
The custom workflow action is one of the first features for Word Automation in SharePoint 2010 I’ve planned to release. Other features will be a Ribbon and Item context menu extension and more Workflow actions.
Let me know if you have any suggestions for improvement or other functionality you would like to see.