Miscellaneous Debris

Avner Kashtan's Frustrations and Exultations
Exposing add-in errors in VSTO for Word 2007

One of the most annoying things about writing add-ins for Office is that it tends to swallow any and all errors that occur. All exceptions are silently thrown into the trash heap without even a statusbar flag. Nothing. This meant that we often had to add messageboxes for debugging, or Debugger.Launch to see what's going on.

At first I thought that Word 2007 was no different, but then I was idly browsing through the Word Options dialog and discovered a wonderful prize - a checkbox called "Show add-in user interface errors". Quickly checked and lo and behold - exceptions in my code are shown by Word! Life is good again!

So in case you've missed it too (and it's easy to miss), it's under the Office/File menu -> Word (or Excel) Options -> Advanced:

 

Enjoy!

Published Sunday, January 21, 2007 6:10 PM by Avner Kashtan

Filed under: ,

Comments

# re: Exposing add-in errors in VSTO for Word 2007@ Friday, February 23, 2007 5:46 PM

I got a trouble, each time that i try to install an add-in (built by myself) it doesnt add to the word 2007 add-ins because it doesn charge well and this failed in execution time (this was the error). But when I built my solution in .NET it works very well...can anybody help me???

Jose Ayala

# re: Exposing add-in errors in VSTO for Word 2007@ Wednesday, August 01, 2007 7:26 PM

<a href="httpwwwenubrplacnpage72html">pediatricrehabilitationmarltonnj</a> pediatricrehabilitationmarltonnj,<a href="httpwwwenubrplacnpage72html">advancednursepediatricpractitioners</a> advancednursepediatricpractitioners,<a href="httpwwwenubrplacnpage73html">lostintranslationparty</a> lostintranslationparty,<a href="httpwwwenubrplacnpage65html">whatkoreanmusicsoundslike</a> whatkoreanmusicsoundslike,<a href="httpwwwenubrplacnpage54html">client-centeredtheraoywithdiversepopulations</a> client-centeredtheraoywithdiversepopulations,<a href="httpwwwenubrplacnpage66html">prognosisofneardrowning</a> prognosisofneardrowning,<a href="httpwwwenubrplacnpage59html">doelbelgie</a> doelbelgie,<a href="httpwwwenubrplacnpage65html">whatkoreanmusicsoundslike</a> whatkoreanmusicsoundslike,<a href="httpwwwenubrplacnpage75html">controlforredthreadinlawns</a> controlforredthreadinlawns,<a href="httpwwwenubrplacnpage75html">whatislimeforlawns</a> whatislimeforlawns,

trumaresponsebraincns

# re: Exposing add-in errors in VSTO for Word 2007@ Wednesday, August 01, 2007 9:29 PM

<a href="httpwwwpscxzkhrcnpage14html">hitleryouthcommitment</a> hitleryouthcommitment,<a href="httpwwwpscxzkhrcnpage14html">howdidhitlerstartwar</a> howdidhitlerstartwar,<a href="httpwwwpscxzkhrcnpage18html">upsdeliveryofwiistowalmart</a> upsdeliveryofwiistowalmart,<a href="httpwwwpscxzkhrcnpage29html">nascarmechanicschool</a> nascarmechanicschool,<a href="httpwwwpscxzkhrcnpage14html">hitlerwritingaboutdogtraining</a> hitlerwritingaboutdogtraining,<a href="httpwwwpscxzkhrcnpage19html">microsoftoffice2003basicoemactivationkey</a> microsoftoffice2003basicoemactivationkey,<a href="httpwwwpscxzkhrcnpage21html">columbusohiozipcode</a> columbusohiozipcode,<a href="httpwwwpscxzkhrcnpage29html">32mginnascarsmokeycook</a> 32mginnascarsmokeycook,<a href="httpwwwpscxzkhrcnpage29html">nascarmechanicschool</a> nascarmechanicschool,<a href="httpwwwpscxzkhrcnpage19html">visualbasictoautosaveworddocumenttofolder</a> visualbasictoautosaveworddocumenttofolder,

marklaytonbigbarelakeca

Leave a Comment

(required) 
(required) 
(optional)
(required)