Welcome to MSDN Blogs Sign in | Join | Help

December 2008 - Posts

Align Attributes when Formatting XML using LINQ to XML
[Blog Map] Sometimes an XML element contains a large number of attributes, and the values of the attributes may be long. When written to the console, such lines wrap, making it hard to read the XML. In particular, the XML responses from SharePoint web Read More...
Convert XElement to XmlNode (and Convert XmlNode to XElement)
[Blog Map] Sometimes you want to convert an XmlNode to an XElement and back again. Some programming libraries define methods that take XmlNode objects as parameters. These libraries also may contain properties and methods that return XmlNode objects. Read More...
Ecma General Assembly Ratifies IS29500 as Ecma 376 v.2 Standard
On Thursday, December 4, 2008 the Ecma General Assembly voted to approve Ecma 376 Edition 2 which is aligned on IS29500. This is good news for the Open XML standard and is the last step in the standardization effort for Open XML in Ecma - started 3 nearly Read More...
Microsoft Releases ODF Implementation Notes for Office 2007 SP2
Today, Microsoft published our first set of document-format implementation notes for the ODF implementation in Office 2007 SP2. These notes, which are available on the DII web site , provide detailed information about the design decisions that went into Read More...
A More Robust Approach for Handling XName Objects in LINQ to XML
There is an approach using LINQ to XML that provides some of the benefits of a strongly typed document object model. The approach consists of declaring a static class with static, initialized XName and XNamespace fields in the class, and then using those XName and XNamespace objects in the LINQ to XML code that creates and queries XML trees. Read More...
Modifying Open XML Documents using the SharePoint Object Model
This post describes the issues and presents a minimal amount of code that shows how to open an Open XML document from a SharePoint list, modify it, and then save it back to either the same location, or a different one if you desire. Read More...
Working with In-Memory Open XML Documents
Sometimes you want to work with Open XML documents in memory. This blog post presents a bit of code that shows how to work with in-memory documents as a MemoryStream. The code works with either Open XML SDK V1 or CTP1 of the Open XML SDK V2. Read More...
Assembling Multiple Word Documents into a Single Document using the Open XML SDK V2
Zeyad Rajabi has written an interesting post on merging documents using altChunk. He shows how to assemble a book from multiple chapters. His post uses V2 of the Open XML SDK. Read More...
Architecture and Design of Windows Forms Custom Controls
Shortly after .NET was released, I wrote a book for Wrox Press on using GDI+ to develop Windows Forms custom controls. Wrox subsequently declared bankruptcy, and the rights to my book were purchased by APress, where the book was republished . You can Read More...
Joining LINQ to SQL and LINQ to Excel
By combining LINQ to SQL with LINQ to Objects in this fashion, you can write some pretty simple C# code that uses LINQ to join data across two separate, disparate data sources. Read More...
Office Business Applications (OBA)
Office is a platform. When we combine the programmability of Office Clients (Word, Excel, PowerPoint, and Access) with the programmability of SharePoint to enable deep integration of data from Line-of-Business enterprise applications, we enable building Read More...
Page view tracker