You may encounter multiple errors while performing large number of object...
Suppose you have a VSTO 3.0 add-in for Excel, which performs some Excel object model calls. You notice that it works fine with less number of object model calls but starts failing when the number of...
View ArticleTroubleshooting common VSTO issues – Part 1
This blog post talks about the common issues related to the VSTO customization failure errors and their possible solutions. Both document as well as application level customizations will be covered...
View ArticleTroubleshooting common VSTO issues – Part 2
In this blog post we will talk about some common errors related to VSTO 3.0 and 4.0. For VSTO 2.0 related issues you can check out the blog post Troubleshooting common vsto issues part 1.Common Error...
View ArticleConsiderations for using Dsofile on 64 bit OS
This post is by Yeshwanth Channaraj.There is a well-documented sample program, DSOFile, that enables reading and writing Office document properties (both old format files like *.xls, *.doc and *.ppt,...
View ArticleVB6 based add-ins may fail to work in Office 2013
VB6 based add-ins have a dependency on the Add-In Designer Object Library (msaddndr.dll), which is no longer shipped with Office 2013 (http://technet.microsoft.com/en-us/library/cc178954.aspx see under...
View ArticleCustomizing Office 2013 backstage
Office 2013 introduced many changes to the backstage. In this blog post we will see how Office 2013 backstage can be customized using the backstage XML. The list of idMso’s for Office 2013 can be...
View ArticleOffice automation through VC++ using MFC Class from TypeLib results into...
When trying to Automate Excel, Word, etc using VC++ (MFC based application) in Visual Studio 2010 we generally perform the following steps – 1-Go to Visual Studio2-Click New Project3-Expand Visual C++...
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 Article