New Office REST APIs and Developer Tools for Visual Studio Update

Tonight (here in Europe that is) Somasegar announced on his blog that the Visual Studio Team and the Office Team released a “number of significant updates for developers building apps that interact with the Office ecosystem”.

All of the updates are more or less related to building Apps for Office/SharePoint and the Cloud. If you need full integration (interacting between Word and Excel, building compound documents, Ribbon interaction etc.) I think you still need to use the ‘other’ option, VSTO. The downside of –that- however is that it won’t be as mobile a you’d like to see. You win some or lose some, depending on the technology you decide to use.

Back to the updates… Announced today were the new Office 365 APIs for consuming Office data and updates of Office Developer Tools for Visual Studio (not to be confused with Visual Studio Tools for the Office System aka VSTO, that is a complete other thing) and “Napa”.

Go and read the blogs for details on all of this,  no need for me to repeat all of it Glimlach

  • The Office 365 Platform blog
  • The Visual Studio blog
  • This year I’ll try to deep dive on this a bit more to get into the subject of replacing your current Add-ins with Apps for Office/SharePoint – Can you or can’t you? Where are we at the moment. Everyone wants to move their Add-ins into the Cloud, but is it even possible today? More on this later …

Showtime: Philomena

Philomena


The “Showtime” section on my blog is a reminder, mostly for my own reference but maybe helpful for other film enthusiasts as well, to remember what movies I’ve seen lately, what it was about and how I rated it in general.


Philomena is a movie nominated for 4 Oscars and a whole slew of other rewards. You wouldn’t expect that by just watching the trailer of the movie.

The movie is about a woman who got pregnant at a very young age and therefor was put away in a Catholic convent where her son was born. Shortly after that her son was taken away from her for adoption.

Journalist Martin Sixsmith started to follow Philomena’s story and together with Philomena he started their search for her long lost son who appeared to have been adopted by an American family. On the search they travel to the United States where they tried to find his current location.

The story of a mother searching for her son changed from a series of facts into an emotional piece of art where spectators in the audience had a hard time to keep it dry. In a silent moment you could hear a soft crying from all directions. The producer managed to touch the hearts of many with this drama. Nine out of Ten, highly recommended !

Office templates not available in VS2012 with ‘converted’ project.

Some time ago I hit a somewhat strange issue where I opened one of our existing projects targeting Office 2010, .NET 4 Client in Visual Studio 2010 and moved this project forward to Visual Studio 2012. After the migration I did not see the Office templates in the Add New Item dialog in Visual Studio 2012.

When adding a ‘new item’ to the project it did not display the Office options to insert a Ribbon for instance:

OfficeTemplatesMissing1

When you create a -new- project, the Office Templates show up without issues:

OfficeTemplatesMissing2

What we see here is a minor issue in the migration code in Visual Studio 2012 and is relatively easy to solve by manually editing the .csproj project file.

What you need to do here to fix this minor issue is to go and look for the entry in the project file called AddItemTemplatesGuid. The migration code changed the AddItemTemplatesGuid property from

AddItemTemplatesGuid="{51063C3A-E220-4D12-8922-BDA915ACD783}”
TO
AddItemTemplatesGuid="{147FB6A7-F239-4523-AE65-B6A4E49B361F}”

Changing it back to the original value makes the Add Item dialog start showing Office category correctly again. So the right Guid should be: "{51063C3A-E220-4D12-8922-BDA915ACD783}”

You can easily check this by creating a small new AddIn project, open the project .csproj file in your editor and search for the AddItemTemplates Guid again. You will see that it is the “{51….” one as specified above. Even better, if you go back into your source control software (TFS or other source control option) environment and look at the value in your original file before migration.

So if you also encounter the fact that you don’t get the Office Templates when adding a New Item in your Office project, dive right in to your .csproj file and change the AddItemTemplatesGuid back to its original value the one that was there before migrating your code.

An update rollup is available for Visual Studio 2010 Tools for Office Runtime 4.0

Today a rollup update for Visual Studio 2010 for Office Runtime 4.0 that was auto-magically released November 13th has been deployed to (at least one of) my machines.

This rollup fixes about four issues with the Visual Studio 2010 Tools for Office Runtime and one fix in particular of a bug that I found and posted on Connect:

http://connect.microsoft.com/VisualStudio/feedback/details/705610/cached-data-storage-fails-in-protected-documents

We worked close with the VSTO development team to identify and isolate the issue and they were able to solve it for us to allow us to continue working with the runtime.

The issue isn’t touched a lot beside our organization (it is a specific user scenario not used by many others) so distribution of the fix was ‘delayed’ until deployment of yesterdays rollup (a hotfix could be requested for in case you ran into it).

So as of yesterday the fix became available for everyone along with a couple of other fixes. Again, probably not many of you will notice any differences but I’m sure the users using one or more of the fixed features will be pleased to see it released in the main branch of the product.

If you want to download the VSTO Runtime on your own, not waiting for Microsoft Update or WSUS you can download it at the Microsoft Download Center.

On a side note, also Office 2013 tooling was released this week to enable you to build VSTO solutions targeting Office 2013 but I will spend some time on that in a separate blog post.