Fixing up InfoPath exported .mhts in Word

If you export a complex InfoPath view to web archive (.mht) file then edit it in Word, you may notice that Word takes a long time to paginate the document when you switch to print layout for the first time. This is happening because the .mht file has a lot of tall and nested tables spanning across multiple pages and it is…


Handy-Dandy Scripts: closing Word gracefully

Sometimes you may find winword.exe process lingering in the memeory and there is no visible Word window that allows you to close it. Believe me, this mostly likely is not Word’s fault: chances are that those ghost Word instances are started by some third party applications via automation. But for some reason those applications are not able to terminte…


CSBlogger updates

Haven’t touched it for quiet a while, tonight I suddenly feel motivated to fix a few old bugs on CSBlogger and the newest build is now available here.   Version Description Credit Bug fixes:1) Error when retrieving post with an apostrophe(‘) in the title2) Error with SetNamedNodeProperty when retrieving posts3) Post content appears blank when opening…


Uninstalling Office updates

Office updates released after today (July 12th, 2005) may be uninstalled like most Windows updates if certain criteria is met. You can find more details in this KB article “Information about the ability to uninstall Office updates”. And the very first honorable update that can be uninstalled is Security Update for Word 2002 (KB895589).


Taking snapshots for part of a Word document – the new EnhMetaFileBits property

In Word 2003 object model a new property named EnhMetaFileBits for Range and Selection object is introduced. From the documentation, you’d see that it is supposed to help getting the picture representation for a portion of a Word document. Very interesting, isn’t it? However the sample included with Word VBA help is too simple to…


RSS feeds for KB articles

Normally I don’t point people around. This one is too good to miss though: Microsoft is introducing RSS feeds that list the most recently published KB articles for many products.   [Update] – I took the time to create the OPML so that you don’t need to copy/paste the feeds into your news reader. You can…


Authoring XML schema (XSD) with InfoPath – Part II

Like I mentioned earlier, it is very easy to use InfoPath as an XML schema editor, with very little extra work:   Choose Design a form… from the File Menu in InfoPath. In the Design a new form task pane, select New Blank Form. Note, if you want to derive a schema from existing XML document or data…


CSBlogger 1.1 is released!

Available now here. I am little bit surprised that CSBlogger didn’t get much attention as its .Text cousin SimpleBlogger had. So I decide to list a few reasons why you should consider using CSBlogger  as your Community Server blog editor:   1) It provides features that are standard in Microsoft Office application, but not available…


Community Server Issues – Part II

A while back, I complained about the big pain caused by the SOAP header change between Community Server 1.0 and 1.1 web service APIs. Scott was kind enough to explain why they made the change. Still, getting my blog editor to work with both versions is painful. At first I went for the easy route…


Authoring XML schema (XSD) with InfoPath – Part I

Recently, I ran across Aaron Skonnard’s MSDN magazine articles talking about Contract First Service Development. The very first step of this so called “Contract-First” development process is to create the XML schema. And for that, Aaron recommended Visual Studio as one of the XSD editor. This reminds me to mention a frequently overlooked fact that…