Skip to main content

Visual Studio Tools for Office (VSTO)-Introduction

This blog post is an extract of VSTO for Dummies. VSTO isn' t a replacement technology for Visual Basic for Applications (VBA). VSTO is a set of tools that you can use with Visual Studio to supercharge Office.
Put simply, VSTO offers tools to -
1. Build add-ins
2. Build customised documents
for Office Applications like Word and Excel.




  • Add your custom functionality to existing Office applications, via add-ins.
  • Leverage all the existing Office functionality in your applications, like
    Word document layout and Excel formulas, through communicating with
    those add-ins
  • Make documents that integrate fully with existing applications and databases
  • Use Microsoft SharePoint to increase communications between knowledge workers with add-ins and documents that communicate.

At their core, Customized Documents are document-level only, while add-ins are application-level and can apply to all documents used by that installation of Office.

Four important features are available in VSTO-
Customized Documents are regular Office documents (like an Excel spreadsheet) that have a .NET DLL associated with them that give them special powers. You can use code in the back-end of the document to fill in fields from a database, validate data, or respond to certain user requests.

If you are used to VBA, VSTO is very different from what you’re used to. It’s not script code in a macro or in a Visual Basic for Applications project. After you make a document a Customized Document, it’s a compiled project, just like a Windows application. VBA is also part of the document, while the code from a VSTO project is in a DLL linked to the document

From the programmer’s point of view, add-ins are just Windows applications that have a special home — an Office application. You can use VSTO to build add-ins, just as you could use Visual Basic 6 and other programming applications before VSTO. Add-ins have been around a long time. VSTO allows you to use managed code (for example, the .NET Framework) for the first time.

Comments

Popular posts from this blog

A simple customization in MPOS (Blank Operation) with AX7

Hi All, I recently had to add a Blank Operation to Modern POS (MPOS) to open a url from MPOS. Blank Operation as you may already be aware enable you to extend Microsoft Dynamics Retail for POS by adding custom logic that can be triggered from the Retail POS Register buttons. The way to implement Blank Operations in MPOS  is different from Enterprise POS as MPOS is a modern app as compared to EPOS which is a windows forms based app. So lets explore a very simple customization i.e. we want to open a URL on triggering a button from MPOS. 1. We would need to start with AX to add a button to the layout of MPOS. If you do not want to disturb the standard layouts its better to copy one of the existing layouts and then modify it using the designer. Please note the designer only opens in Internet Explorer so it will save you time by not trying to open it in other browsers e.g Chrome 2. Next we need to add this layout to the Store where we intend to use it...

Handy Tips on working on Microsoft Word or Outlook

I have complied a small set of handy tips for working on Microsoft Word or Microsoft Outlook – 1. To change case (toggle between upper case, lower case and camel case),  select the text and press Shift+F3 2. While editing documents, it is not uncommon to delete words, phrases, and the like. Different people take different approaches to the task. For instance, some people just select the text and press Delete, while others may simply hold down the Delete or Backspace keys until the unwanted characters disappear. If you are in the latter group, and you spend a lot of time pressing Delete or Backspace, you may be interested in a handy shortcut provided by Word. All you need to do is hold down the Ctrl key to speed up your editing tasks. Here is a list of what you can achieve with this Ctrl+ <-- (left arrow key)        Goto Previous word Ctrl+ --> (right arrow key)      Goto Next word Ctrl+Delete     ...

Configuring Hyper-V for seamless access to VM on Windows 8

If you have Windows 8 Pro or EnterPrise and need to use Hyper-V on your machine look no further. In this post I will explain how you can start using Hyper-V up on your machine but before I get into the usage instructions I would like you to read the below link to understand how you can enable Hyper-V on your machine http://www.techrepublic.com/photos/use-windows-8-client-hyper-v-to-set-up-a-test-machine/6387407?tag=siu-container;thumbnail-view-selector Once you have enabled Hyper-V and created a Virtual Machine the next step is to be able to access this VM seamlessly. The way you can achieve this is listed below- Goto Hyper-V Console and click on Virtual Switch Manager Select the network type as Internal and click Create Virtual Switch. This network switch enables your guest Virtual Machine to communicate with the host machine. Next run ncpa.cpl in your host machine's run window. Right click the Internal network adapter and click properties. Double click on...