VSTO performance tips

If you are writing a VSTO customization – make sure you aware of this performance tip courtesy of Steve Peters – developer on the VSTO team. This tip allows to prevent VSTO runtime from reflecting on your entry point assembly. We see considerable startup improvements especially for add-ins that have WPF controls – because reflecting…

0

Design of VSTO 2010 runtime

When migrating VSTO solutions targeting .NET 3.5 to .NET 4.0 people are noticing some design changes. Our documentation on migration puts it pretty straightforward about this and does not explain the underlying reasoning for these changes: “If the target framework of an Office project is changed to the .NET Framework 4 from an earlier version of…

0

VSTO 2005 Second Edition – hot off the press

VSTO 2005 Second Edition Beta (aka VSTO2005SE) – this is a new free product that complements VSTO 2005. See this announcement from KD Hallman if you want to know general details about the product and the roadmap. I am here to discuss technical details of what it is. First of all – there is a…

21

Must read for everyone trying to deploy VSTO solutions

I am breaking the silence to get the word out (to those loyal souls that still aggregate my blog) about 2 articles on VSTO deployment. First article is an in depth overview of VSTO deployment models and proposed solutions. The second one is a complete walkthrough for setup project creation with code samples. Most important – this…

16

Spaces in SmartTag.Terms collection

When you add non-terms into the SmartTag.Terms collection do you expect those terms to be recognized? If you do this is a false expectation. The simplest code to add a SmartTag to a Word document looks like this: private void ThisDocument_Startup(object sender, System.EventArgs e){    SmartTag st = new SmartTag(“http://www.microsoft.sample.com#foo”, “Foo term”);    st.Terms.Add(“foo”);    st.Terms.Add(“One Two”);    Action…

0

Getting help on VSTO topics

This post is prompted by a comment left yesterday on my blog. The comment was quite big in size. It went something like this – “my assembly has an ActionsPane and can not be loaded, here is the error message I am getting …. “. This brief introduction was followed by 300 lines of the…

4

managed addins support in Office 12

At the PDC we have announced support for managed Add-ins across most Office applications. Superficially it is not real news considering today we already have “Shared add-in” project. This project type is there since Visual Studio .NET and this thing is still alive for VS 2005. However, the devil is in the details and when facing…

9

Back from PDC

I am back from PDC and I can finally post to my blog! I was not able to do it from LA because 2 weeks before PDC I accidentally ran over my laptop with my van. No surprises here – the laptop is quite useless now. So in LA I had access to computers only at the…

9

VSTO PDC sessions

PDC is just in a week and I will be there. I will present during the preconference with Eric Carter and Andrew Whitechapel. The reason three of us are doing this session is because it is 6 hours long! Since we all work directly on the VSTO code base, get ready for deep coverage and…

3

Getting plain VSTO ActionsPane to work.

Adding programmable task pane aka ActionsPane with VSTO is a piece of cake. All you really need to do is just add controls to the ActionsPane object using the familiar WinForms paradigm. Here is how you would show a button on the task pane in Word. Globals.ThisDocument.Controls.Add(new Button()); This code produces less than sofisticated task…

16