June, 2006

Doug Mahugh - Office Interoperability

Doug Mahugh

Microsoft Interoperability Team
  • Doug Mahugh

    CreateDOCX Sample Program

    This post covers a very simple program for creating an Office Open XML word-processing document. The source code for this program is included in the attachment, or you can download it here . The syntax for using the CreateDOCX program is shown to the right. It's a command-line program that takes two arguments: a filename to be created, and some text to put in the file. That's all there is to it -- the program then creates the output file using the .NET packaging API. The resulting document can...
  • Doug Mahugh

    Creating Open XML Documents

    The packaging API in the .NET 3.0 framework (formerly known as WinFX) provides low-level support for reading and writing Open XML documents. And now that Office 2007 Beta 2 is out, more developers are starting to ramp up on how to work with the packaging API. (If you've not seen the new packaging API, you can download the WinFX February CTP to check it out.) Over the next couple of weeks, I'm going to be writing some simple programs that will serve as learning tools for working with the packaging...
  • Doug Mahugh

    Sharepoint's Support for Blogs, Wikis and RSS

    A new Channel 9 video today covers Sharepoint's support for blogs, wikis, and RSS. Sharepoint PMs Tim McConnell and Renee Lo give a guided tour of the new features, and also discuss some of the thinking behind Sharepoint's approach. Here's the link. The blog and wiki support means that organizations using Sharepoint for collaboration don't need a separate platform for each type of collaboration. Whether you're sharing a document library, publishing to a team blog, or working together on a wiki...
  • Doug Mahugh

    Office Programmability Tips

    Here's a nice summary of the benefits of developing Office add-ins with the new VSTO AddinLoader. Security and administration of add-ins was clumsy in the old days (i.e., Office 2003), but things have changed. Good riddance, mscoree.dll. That post is on David Gainer's Excel blog , but it was written by Patrick Smith, a PM on the Office Programmability team. I like the way some of the most popular Office-related bloggers have started running guest posts from others on the office team, such as Savraj...
  • Doug Mahugh

    The Low-down Hoe-down on LEAGIS

    In state government, like any other field, there are technology leaders and technology losers. The state of Florida is a true leader in this field, and this week I've had the opportunity to spend some long hours with the developers of their unique and powerful LEAGIS system. LEAGIS automates the processes that support the legislative process, from initial creation of bills, to their reading by various House committees, to their review by the Senate, and on to the Governor's office where bills...
  • Doug Mahugh

    Code Snippets for Open XML Development

    The Open XML code snippets are out! These are a well-organized set of snippets that do the basic things every developer needs to do when working with Open XML documents. They're free, and all of the snippets come in C# and VB versions. Download them here. Here's the complete list of what you'll find in these snippets: Open XML: Get OfficeDocument Part Excel: Add Custom UI Excel: Delete Comments by a specific User Excel: Delete Worksheet Excel: Delete Excel 4.0 Macro sheets ...
  • Doug Mahugh

    Vista Includes Debug!

    <friday evening rant while waiting for traffic to die down> I have a favorite utility program, a piece of software that has been included with every shipping Microsoft operating system since the earliest versions of DOS. I'm talking about Debug, of course, the DDT of MS-DOS. (DDT, or Dynamic Debugging Tool, was a Debug-like programmer for CP/M, the operating system DOS was largely based upon.) With all the focus on security in Vista, I thought Debug would be long gone. In fact, geek that...
  • Doug Mahugh

    Adding Custom XML Parts from the Word Object Model

    There are several different ways to insert a custom XML part in an Office Open XML documents: you can manually add the part and set the necessary relationships ( here's an example of that on OpenXmlDeveloper.org ), you can use the .NET 3.0 packaging API, or you can use the Office object models from within your C#, VB, or VBA code. If you're using that last option, you'll probably want to create an empty custom XML part and then fill it with some content, something like this example in C#: ...
  • Doug Mahugh

    Dual-boot Vista/XP

    Last night I took a flying leap into the world of Vista. I've meant to install it for a while, but was a bit afraid of losing the ability to run all my old XP applications -- I didn't want to get in a situation where I had to fight with some not-ready-for-Vista piece of software in order to get my job done. But thanks to Vista's hassle-free installation that lets you put it on a secondary drive for a multi-boot scenario, I now have a setup that gives me the best of all worlds. I have Vista and...
  • Doug Mahugh

    Developer Tools for Office 2007 Beta 2

    If you're looking to get started on developing software with Beta 2 of the 2007 Microsoft Office System, you'll need more than the free Beta bits . You'll need WinFX .NET 3.0, VSTO, various SDKs, Visual Studio extensions, and more. Mark Bower has put together a handy list of where to get everything you'll need to develop solutions with Beta 2 .
Page 1 of 3 (23 items) 123