Tam Tam
 

New sample project for SP2010 Word Automation: UI

05

Mar

I've published a new sample project for the SP2010 Word Automation project on CodePlex. This sample will add a Ribbon button to document libraries enabling users to convert one or more documents directly from the UI. Read more on my personal blog here

Share:

Peter Gerritsen schreef

Comments (0) | Permalink

Peter Gerritsen

2 new worflow activities added to SP2010 Word Automation

05

Mar

I've added 2 new custom workflow activities for Word Automation services to my codeplex project. You can read more about it on my personal blog in this post

Share:

Peter Gerritsen schreef

Comments (0) | Permalink

Peter Gerritsen

CodePlex project for Word Automation Services

13

Jan

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:

Office Open XML (DOCX, DOCM, DOTX, DOTM)

  • Word 97-2003 Document (DOC) and Word 97-2003 Template (DOT)
  • Rich Text Format (RTF)
  • Single File Web Page (MHTML)
  • HTML
  • Word 2003 XML
  • Word 2007/2010 XML

File formats the service can write:

  • PDF
  • XPS
  • Office Open XML (DOCX, DOCM)
  • Word 97-2003 Document (DOC)
  • Rich Text Format (RTF)
  • Single File Web Page (MHTML)
  • Word 2007/2010 XML

(source: http://blogs.msdn.com/microsoft_office_word/archive/2009/12/16/Word-Automation-Services_3A00_-What-It-Does.aspx)

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:

Workflow Actions

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):

Convert document action

Save Behaviour

The job id is also logged into the Workflow History Log (the second entry is from a second workflow action that logs the returned conversion job id variable):

image

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:

image

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.

Share:

Peter Gerritsen schreef

Comments (0) | Permalink

Peter Gerritsen
Page 1 of 1 in the WordAutomation category

Zoeken

Categorie

Archief


Sign In