Category: .Net

Updating SharePoint Taxonomy Fields

Updating SharePoint Taxonomy Fields

I tripped up on it a bit recently on SharePoint taxonomy fields (or managed metadata fields) as I found that I wasn’t able to push down values from a SharePoint list item to a Word document programmatically in SharePoint. I...

Getting All Content Controls using OpenXML

Getting All Content Controls using OpenXML

If you’re trying to get all of the content controls in an OpenXML document, the most obvious way to do it would be:

But this will only get you some of the content controls.  Basically, it won’t return any...

Irony .NET Language Implementation Kit

I came across Irony (https://github.com/IronyProject/Irony) today while contemplating whether to use antlr or not for a project I’m working on where the requirements call for allowing users to write small conditional instructions. From the project site description: Irony is a...

Inserting HTML into Word Documents

For a recent prototype, I was tasked with building a solution to allow authors to create “standard text” entries in SharePoint 2010 which could then be re-used by authors. One of the challenges was trying to figure out the best...

Philly .NET Code Camp and Windows Azure

Philly .NET Code Camp and Windows Azure

I spent half a day at the Philly .NET Code Camp and ended up attending only two sessions (weather was too nice outside to be sitting inside on a Saturday :-D).  By chance, I saw Alvin Ashcraft’s name on the...

SharpZipLib and ASP.NET

SharpZipLib and ASP.NET

I recently had to write a search-driven component to extract and export documents from a SharePoint repository. It presented a challenge since many examples on the web start from the premise of a file system and not binary streams. I...

FluentNHibernate And NHibernate.Linq

FluentNHibernate And NHibernate.Linq

Just a little blurb on FluentNHibernate and NHibernate.Linq. I’ve been working through the samples for FNH and decided to try out some different query scenarios to see how the queries would be generated. I stumbled a bit on the first...

Paging With SPListItemCollectionPosition

Paging With SPListItemCollectionPosition

Update: see this post for how to use paging to improve retrieval of large data sets. Let it be known that Microsoft’s terrible design of list paging is inexecusable and to make matters worse, the documentation is practically non-existent. You...