Articles tagged with Microsoft Office

Clean HTML from Microsoft Word: Rube Goldberg Method

By Eric — 3 minute read

Wouldn't it be nice to be able to save nice clean HTML from Microsoft Word? Here's a way that is only slightly convoluted.

If you use the "Web Page, Filtered" option from Word, you get buried in piles of CSS cruft, but as noted here, you can use the Publish …

Read more...

Corrupt docx File After Adding Custom Properties Part

By Eric — 4 minute read

I spent a few days implementing a component that adds some custom properties to Office 2007 files. Using the System.IO.Packaging namespace from .NET 3.0, and looking at some sample code in some Visual Studio snippets, things went pretty smoothly. Just when I thought I was done, though …

Read more...

Paste Special Macro for Word

By Eric — 1 minute read

I sometimes wonder how often the default paste operation in an application is appropriate. Maybe I'm abnormal (maybe?) but it seems like 73.2% of the time, I want pasted text to match the formatting of where it is going rather than where it came from. I guess the exception …

Read more...

Temporary CommandBar Customizations in Word

By Eric — 3 minute read

It's common for an Office add-in to put some custom menu items or toolbar buttons in the UI of the hosting application. The method to call to do this is CommandBars.Add. It is also typical that you'd like those customizations to appear so long as the add-in gets loaded …

Read more...

Office Open XML Deep Dive

By Eric — 2 minute read

Last week I went to San Francisco to take a dive off the deep end into the new XML file formats in Microsoft Office 2007. The training was hosted by MindJet, and presented by Doug Mahugh of Microsoft, and Chris Predeek, a consultant who put together the code samples for …

Read more...