VSTO

Undocumented behavior of Office 2010 Word Save As dialog with Sharepoint

Here’s another Office 2010 undocumented “feature”. First a little background regarding required fields in sharepoint: In Office 2007, in order to attach the Sharepoint properties to a document you had to first Save it into the document library. Word would allow you to save, but the document would remain checked-out to you until you filled …

Undocumented behavior of Office 2010 Word Save As dialog with Sharepoint Read More »

Viewing and editing Sharepoint properties on a Word document… again

I have posted before about a method of editing the SharePoint Document properties on a Word document in Office 2010 (and Office 2007). I just found something that completely blew my mind. I spent hours and hours battling with CustomXMLParts, Protected and Readonly documents, and a Save-As dialog… and found out that all that effort …

Viewing and editing Sharepoint properties on a Word document… again Read More »

Office 2010 Backstage OnShow callback contextObject

The signature for the Office 2010 backstage OnShow callback looks like so: [csharp] void Backstage_OnShow(object contextObject) [/csharp] But I cannot find anywhere that documents what the contextObject is. Well I can tell you – it’s the Window object that is hosting the backstage as shown. I’m guessing it’s an object because it will be the …

Office 2010 Backstage OnShow callback contextObject Read More »

Undocumented Office Ribbon Callback functionality

I just stumbled on an undocumented feature of the getImage callback for the Office 2010 Ribbon (well, backstage actually) The “official” callback signature is [csharp] Public System.Drawing.Bitmap GetImage(Office.IRibbonControl control) {} [/csharp] Or sometimes [csharp] Public stdole.IPictureDisp GetImage(Office.IRibbonControl control) {} [/csharp] I don’t know which is “best”, but if you return a Bitmap it sure is …

Undocumented Office Ribbon Callback functionality Read More »

Definitive complete list of Office Ribbon Callback Signatures for 2007 and 2010

Microsoft’s documentation for programming the Office Ribbon is pretty sparse at best. There are two pages you can get Callback signatures: 1. Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3) 2. Introduction to the Office 2010 Backstage View for Developers Notice that neither of these documents sound like where you would …

Definitive complete list of Office Ribbon Callback Signatures for 2007 and 2010 Read More »

Changing the value of an editBox office Ribbon Control at runtime

When creating VSTO Add-Ins that customize the Office Ribbon, the visual Ribbon editor makes some tasks trivial. All Ribbbon controls can be accessed by id using intellisense. The RibbonEditBox.Text field can be directly queried and modified. Everything changes when you create the RibbonXML directly. You cannot directly query any of the runtime values on a …

Changing the value of an editBox office Ribbon Control at runtime Read More »

Behaviour of Application.MailMergeAfterRecordMerge Event

The signature for the Application.MailMergeAfterRecordMerge event looks like this: [csharp] void Application_MailMergeAfterRecordMerge(Word.Document Doc) { } [/csharp] While I would have expected the Document referenced in the Doc parameter to be the newly created merged document, it is actually a reference to the document from which the merge occurred. In other words, it’s not really all …

Behaviour of Application.MailMergeAfterRecordMerge Event Read More »