WordprocessingML: Part 2

In the first part of this series, we’ve created a simple WordprocessingML document, and added some basic content to it. It is now time to add some formatting, to make that content presentable. In this part we’ll focus on the two basic methods to modify the formatting of text: Runs properties Paragraph properties More advanced … Read more

WordprocessingML: Part 1

Let’s start with a public notice: Most of the OpenXML/WordprocessingML samples I’ve found work with TextWriters, and just write XML strings into the writer. Me, being the funny guy I am, prefer to work with XmlWriters. This makes sure I make no structure mistakes in the XML itself, allows me to generate well-formatted XML (useful … Read more

WordprocessingML to the rescue

I’ve recently found myself in need to create documents out of various sources (other documents, information from ECM system, and so on). I’ve tried several approaches, including: My first try was with the Microsoft Word Object Model, but encountered several bumpers: The complexity of the object model, the requirement of having Microsoft Word installed on … Read more

Retrieving Documentum repeating values

Documentum provides the functionality of repeating properties – properties that have more than one value. Retrieving those values is a simple matter of getting the number of values for that property, and then request each one of the values. Here’s a small utility method:

Displaying properties of a Documentum object

When working with Documentum TypedObjects, you almost always need to retrieve their properties. Below is a method to print those properties to the Console. Notice, that this example uses the getAllRepeatingStrings() method – a useful method for displaying values to the user, but not very useful if you need to process and work with the … Read more

Quality Doesn’t Just Happen

Judy McKay writes a very interesting article, Quality Doesn’t Just Happen about project management process, and how to place Quality front-and-center of a project life-cycle. A quality-focused team produces a better project in a shorter amount of time, every time, but you have to have the right people to make it happen. We won’t need … Read more

The Visitor design pattern

I’ve always been a huge advocate for design patterns in the past, but up until recently, I didn’t get a chance to actually implement the Visitor design pattern. This changed last week, when one of my colleagues asked me to implement a small tool that handles one of our standard XML files. The tool was … Read more

Book Review: Peopleware: Productive Projects and Teams

I’ve just finished reading Peopleware, by Tom DeMarco and Timothy Lister. The first few chapters (essays) were great. However, as I dwelled deeper in the book, I’ve encountered myself feeling less and less interested. Now, I understand that the book might be a bit outdated (being written more than 20 years ago at the time … Read more

SharePoint Lists: Grouping/Paging by first letter

A very interesting blog entry, Alphabetical Paging on a SharePoint List View, by Tom Clarkson, talks about grouping/paging items in a SharePoint list based on their first letter. If you are just looking for the formula needed to create a calculated column that contains the first letter of the item’s Title, here it is:

User friendly file size

Based on a utility method found in the Microsoft.SharePoint.Utilities.SPUtility class, here’s a method to get a user-friendly text for a file size:

MIME Types and File Extensions

Whenever working with content of files, it is often useful to have a way to find the MIME type based on a file extension, or the other way around – finding the file extension from a MIME type. Below are 2 useful methods for such requirements: