Excel 2007, WPF: Events are not fired for items that overlap Excel UI for WPF...
Symptoms:Consider a scenario where you have a VSTO 3.0 add-in for Excel 2007 that loads up a WPF control in a custom task pane as a context menu.You have also subscribed to the MenuClick event for each...
View ArticleWord 2007: Customizing Document inspector leaves instance of Word open in the...
Symptoms:If you have customized Document inspector for Word 2007 using IDocumentInspector interface, after running the Document Inspector on the document and then exiting out of Word, will leave an...
View ArticleExcel: How do you implement Application_Quit event in Excel – In External...
You may have come across this blog which demonstrates how you can capture Excel’s quit event from an Add-In (in process). This post will be about capturing Excel’s quit event when you are externally...
View Article“HeaderFooter (unknown member) : Invalid request.” Error, while setting slide...
Symptoms:While programming PowerPoint 2007 in .Net, when you try setting Footer text for slides, you may encounter the following error message,Error Message:HeaderFooter (unknown member) : Invalid...
View ArticleHow to Delete a Worksheet from Excel using Open XML SDK 2.0
Update (8 Feb 2013):- The sample code has been fixed for issues where it did not correctly delete all defined names and calculation cells.Recently I worked on a scenario where a user wanted to delete a...
View ArticleHow to set the editing restrictions in Word using Open XML SDK 2.0
Recently I worked on a scenario where customer wanted to set the Document Editing Restrictions in Word 2007 using Open XML SDK 2.0. Document Editing Restrictions is nothing but Review | Protect...
View ArticleHow to implement late bound event handling in case of a VSTO Add-In
If you build a managed component that loads into Office application’s(Word, Excel , PowerPoint) process space, and the managed code uses the PIA (or a custom IA using event delegates) to sink events on...
View ArticleUsing shortcut keys to call a function in an Office Add-in
Recently I came across a problem where a customer was looking for the ways to call a function in an VSTO office add-in using keyboard shortcuts. Since I could not find good documentation on it, I...
View ArticleHow to retain alternate data stream associated with a word document while...
Recently I encountered a not so common [;-)] scenario while working with Word 2007:If you have a Word 97-2003 format document which also has an alternate data stream associated with it, converting this...
View ArticleHow to efficiently generate OpenXML Workbook from Excel files containing very...
Few days back, one of my colleague asked me for my help for a requirement to convert an Excel 97-2003 Workbook to an OpenXML based workbook. Although it may sound pretty easy, the catch was that the...
View ArticleSmart tags built using Visual Basic 6 don't work with Word 2010 and...
Recently I worked on a problem where the Visual Basic 6 (VB6) Smart tags were not working with Word 2010 and PowerPoint 2010. The same VB6 smart tags work fine in Word 2007 and PowerPoint 2007. The...
View ArticleVSTO 4.0 SP1 will cause a VSTO Addin to not find its config file.
Few days back i worked on a problem where a VSTO addin was failing to load after VSTO 4.0 SP1 was installed on the machine. This addin was reading some data from its application configuration file....
View ArticleExcel xml file behaves differently when opened in 32 bit and 64 bit versions...
Issue: Suppose you have an Excel XML file and you try to open it in inside an Internet Explorer 32 bit version(by drag drop), it opens just fine in Excel on a Microsoft Office 2010 machine. But if you...
View ArticleExcel RTD Caching–Memory usage
Microsoft Office Excel provides a worksheet function, RealTimeData (RTD). This function enables you to call a Component Object Model (COM) Automation server provides you with a way to view and update...
View ArticleWord 2007 Bug: Accessing content controls having ID more than 2^31 results in...
Few days back I worked on an issue where a Word 2007 VSTO document solution, developed using VSTO 3.0, was behaving erratically when VSTO 4.0 was installed on the same machine. The Word document was...
View ArticlePresentation.Saved property in PowerPoint returns false for a new,...
Suppose you are developing a PowerPoint add-in and want to use the PresentationCloseEvent to present users with a custom dialog to save the presentation only if the new presentation contains valid...
View ArticleHow to create a document from a template (dotx, dotm) and attach to it using...
One of the needs to use Open XML SDK is to create documents on server side. In case of Open XML, it is recommended to create a document from another one rather than creating a document from scratch....
View ArticleResolving performance issues with loading Office add-ins (VSTO add-ins or...
Many Office developers report performance issues with loading Office add-ins (VSTO add-ins or Shared add-ins) but most of the time delay is due to external factors. This blog post tries to list...
View ArticleHow to set duplex printing for Microsoft Word Automation clients in C#, VB.Net
Microsoft Word Automation clients cannot set the duplex print flag before a print job starts in Microsoft Office Word. Although a parameter in the PrintOut method indicates that there is support for...
View ArticleArgumentOutOfRange exception when using WPF controls in a Project 2010 add-in.
You may see "ArgumentOutOfRange" exception for no apparent reason when using WPF controls in Microsoft Project 2010 add-in.Specifically, you will see exception with a call stack similar to below...
View Article