Click here to Skip to main content
15,896,481 members
Everything / VSTO

VSTO

VSTO

Great Reads

by Syed Umar Anis
ExcelXMLExport is a Microsoft Excel 2010 / 2013 Add-in that generates XML data from Excel sheet.
by Turay Melo
This is an alternative for "Creating an Outlook 2010 Add-In"
by terence.cplau
ContactSharing4OL is an Add-in for Outlook through file server shared contacts item of Outlook in Office area.
by Leo Chapiro
Outlook AddOn to store the attachments in the file system

Latest Articles

by Leo Chapiro
Outlook AddOn to store the attachments in the file system
by G.E. Zanoletti
This is a tutorial on how to create a VSTO Add-in to extend the Microsoft Outlook functionalities.
by terence.cplau
ContactSharing4OL is an Add-in for Outlook through file server shared contacts item of Outlook in Office area.
by Stephan Ehret
Create YouTrack issues from Outlook and manage your issues from Microsoft Project

All Articles

Sort by Score

VSTO 

21 Jan 2015 by Syed Umar Anis
ExcelXMLExport is a Microsoft Excel 2010 / 2013 Add-in that generates XML data from Excel sheet.
22 Dec 2014 by Turay Melo
This is an alternative for "Creating an Outlook 2010 Add-In"
4 Jul 2016 by terence.cplau
ContactSharing4OL is an Add-in for Outlook through file server shared contacts item of Outlook in Office area.
12 Oct 2011 by Sergey Alexandrovich Kryukov
The problem is simple. Its constructors are available but are marked "infrastructure" by Microsoft. This is a case of some less than perfect Microsoft design trick they use from time to time as they failed to hide access to those constructors in an elegant way and left them public.From the...
7 Oct 2020 by Leo Chapiro
Outlook AddOn to store the attachments in the file system
6 Feb 2011 by Sergey Alexandrovich Kryukov
I was thinking about alternative Answer to avoid compilation of all of the code, which can be a key — see my first answer.Here is what I got here.You could use System.CodeDom to obtain a CodeDOM program graph, represented by the top-level node System.CodeDom.CodeCompileUnit. I...
6 Feb 2011 by Sergey Alexandrovich Kryukov
I don't know how Intellisense works with Visual Studio, but I know in fine detail how a project works and can say for sure: parsing of the project will not provide any essential help. The project only contains a structure of the projects: basically, source files, dependencies and methods of...
29 May 2013 by Maciej Los
Have a look here:How to: Programmatically Add Text and Formatting to Cells in Word Tables[^]How to: Programmatically Insert Text into Word Documents[^]How to: Insert Text into Word Documents[^]A few other links that could be helpful:Walkthrough: Creating a Table in Word[^]How to:...
4 Dec 2011 by toby31
Found it:private void ThisAddIn_Startup(object sender, System.EventArgs e){ InfoPath._Application3 iApplication = (InfoPath._Application3)this.Application; events = (InfoPath.ApplicationEvents)iApplication.Events; events.WindowActivate += new...
17 Apr 2012 by Reza Ahmadi
Hi,Take a look at this post:http://social.technet.microsoft.com/forums/en-US/exchangesvrgeneral/thread/d131df95-3acf-42cf-bd89-71e3495d6dfc[^]I hope it helps,Cheers
26 Jun 2013 by The_Inventor
CBitmap bmpPlayer; bmpPlayer.LoadBitmap(IDBMP_PLAYER1); m_pdcPlayerMem->CreateCompatibleDC(NULL); m_pdcPlayerMem->SelectObject(&bmpPlayer);void CView::OnDraw(CDC* pDC){ pDC->BitBlt(600, 300, 150, 200, m_pdcPlayerMem, 0, 0, SRCCOPY);}The above used to work...
8 Aug 2013 by virusstorm
Office 2007 and 2010 came with the VSTO for their respective versions and 2010 was backwards compatible. With 2013, you need to install the 2010 or 2007 VSTO on the machine or update your project to VSTO 2013. Keep in mind the object factory model changed extensively since 2013 making it a fun...
20 Jan 2014 by Andreas Gieriet
How about...
2 Nov 2014 by DamithSL
check below links Word Automation: Replace an Image using C#[^]How to get the images from a word document[^]Also check WdInlineShapeType Enumeration[^] for the types of schapes you can identify.
21 Jun 2017 by Kornfeld Eliyahu Peter
C# and .NET is not - the only - problem here... VSTO add-ins are based on COM technology, that does not exists on Mac - it is a Windows only thing... So what can you do with it? Do HTML/CSS based Office add-ins... Office Dev Center - Docs - Platform overview[^]
30 Sep 2017 by Dave Kreskowiak
You're doing it backwards. The code you're running is on the UI (startup) thread. ALL UI STUFF, including your "spinner form" MUST be on the UI thread. Every little touch of every UI form and control MUST be done on the UI thread. Creating a thread to show a form or a control on it isn't going...
24 Oct 2017 by Maciej Los
Check this: CustomTaskPane.Width Property (Microsoft.Office.Tools)[^] MSDN wrote: The minimum width depends on several factors, and can change in future releases of Microsoft Office. If you try to set the Width property to a value that is less than the minimum width, the application will...
22 Feb 2018 by Richard MacCutchan
Open one Solution. Right click on the Project you wish to run, and select "Set As Startup Project". Press F5 to run in debug mode, or Ctrl-F5 to run in Release mode. If that still does not work, please provide more details.
13 Sep 2018 by Richard Deeming
Path.ChangeExtension(String, String) Method (System.IO) | Microsoft Docs[^] string documentFileName = Path.ChangeExtension(xmlFileName, ".docx");
15 Jan 2021 by CHill60
I am not going to follow those links while I am at work. There is very rarely a need for an "image" with problems like this - just put the data into the body of your question - it has the advantage of making it easier for us to paste into a test...
19 Mar 2015 by Joan Magnet
Use a non-proportional font, like courier new.
28 Feb 2010 by Programm3r
Hi all,I have developed a VSTO add-in for Outlook (2007 & 2003) using VS 2008. The thing is how can I differentiate between an appointment that has been sent to the recipients and one that has only been saved and closed (not sent). The thing is I have to set a flag in the DB representing the...
28 Feb 2010 by Sandeep Mewara
You can check "Outlook.Recipient" count. (Count is a valid property of Recipient object.)If it is greater than 1, you can take it as sent or else just saved and closed.
28 Feb 2010 by Programm3r
Although Sandeep has a valid point, a situation may exist where an user creates an appointment with boardrooms / recipients and decides to save and then close the appointment without sending it.I have checked the Item properties of the appointment item and noticed that the following values...
1 Mar 2010 by Programm3r
Answer from: Ken Slovak [MVP - Outlook]What you're missing is what you're going to run into with methods/eventsthat overload the same keyword in all managed code. In this caseAppointmentItem doesn't directly expose the Send event since it uses thesame keyword as the Send...
8 Mar 2010 by Programm3r
Hi all,I have created a VSTO (Appointments) application targeting Outlook 2003. The thing is that I have no idea how to get hold of the email address of the recipients of the appointment. I am well aware that in Outlook 2007 VSTO, one can use the following piece of code to get hold of the...
8 Mar 2010 by Programm3r
And the answer can be located here:Describing the problem in detail ... well the first part any way[^]How to fix - needs a bit of conversion between VB and C#[^]Kind regards,
23 Mar 2010 by Programm3r
Hi all,I am making use of a web service to retrieve an image / logo. This image is used within a mail message item. The mail message item is generated from a VSTO add-in within Outlook. The problem is how can I embed the image within the mail item body.I do not want to save the image to...
23 Mar 2010 by Not Active
Have a look here, Embed HTML Email Images[^]
23 Mar 2010 by Nicholas Butler
You need to add the image as a LinkedResource, then just reference it in an tag.http://www.systemnetmail.com/faq/4.4.aspx[^]Nick
30 Mar 2010 by annaka
Hi,I am trying to add my very own Navigation strip to the Outlook 2007 Navigation Pane. I want it to appear amongst the 'Mail' 'Calendar' 'Tasks' 'Notes' panes on the Explorer View. I've been going through Outlook Object Model and VSTO library but it has not brought any solution.I began...
18 Apr 2010 by Programm3r
Hi all,I recently came across the following product[^] that makes use of a custom tab within the appointment item of Outlook. I have read numerous article from Sue Mosher, explaining how create the custom tab within the appointment window of Outlook (if someone is interrested you can read...
24 May 2010 by Programm3r
Hi all,I am busy developing an installation package for my VSTO add-in that targets Microsoft Outlook 2003. I had a look at the product.xml file (each of the prerequisites), and noticed that one can give arguments to the installation of the prerequisite - be it vstor.exe or the interrop...
29 Jun 2010 by Pankaj Chamria
I am currently using the addin "Visual Studio 2005 Tools For Office Runtime" and carrying out the development in VS 2008.. I am targeting Office 2003 applications using this setup. Now my client wants to move to using Office 2010. Is there an add-in available that would enable me to target...
6 Jul 2010 by mrcomputerengineer
I am developing add-in for excel and trying to read pivot tables but found no access to pivot tables from the worksheet , strangely pivot table can be reached from non add-in projects , I will be grateful if any one give me some info or code.
6 Jul 2010 by William Winner
I'm not sure what you're talking about. If you're using c#, then presumably, you're using the Microsoft.Interop.Excel library...which has a Worksheet.PivotTables method.
3 Jan 2012 by Pankaj Chamria
The following piece of code was working fine with "Visual Studio 2005 Tools For Office Runtime" and VS 2008.. Office 2003 was targeted for this.static public void ResizeAllNamedRanges( Tools.WorksheetBase wksht, int iResizeRows, ...
5 Sep 2010 by DaveAuld
Are you not casting the worksheet control to type object in the code above?resulting in (simplified) if (System.object == Tools.NamedRange)Should this not be written;if ( wksht.Controls[ i ].GetType( ) == typeof( Tools.NamedRange ) )
28 Sep 2010 by BillW33
This post[^] may be of help to you.
1 Oct 2010 by parth.p
Hi I am working on a .net solution which allows user to create new email. In this app they can select items which then will be added to the email. These are not attachment, just simple text and hyper links.I am using simple html code to generate layout of an email. In this html I have class...
14 Oct 2010 by deinth
Hi,I've a project with a .msi file. That file puts all necessary files on computer target. But then, i need to execute one of that new files placed. I'm doing some addins for office, and when installing, i've looked i need to execute the .vsto file in target computer to install it...
15 Oct 2010 by Pawel Zawadzki
6 Dec 2010 by Speed.Of.Light
I've been trying to open a word (.docx) document inside my application.Is there any special control to do so?I got lost googling ... what should I use:- Microsoft.Office.Interop.Word.OLEControl- Microsoft.Office.Tools.Word.ControlSite- somthing else ?any Ideas ?
7 Dec 2010 by Speed.Of.Light
Okay, I found this could be done by opening the document in a WebBrowser control, but it works only previous versions of office and Internet explorer.checkout this link[^]______Now I have another question:Why my questions are never answerd ? :mad:Is there any anything wrong...
5 Feb 2011 by Abhinav S
The only way I see it, you need to build your project using reflection.Best of luck!
20 Mar 2011 by Henry Minute
Take a look at the links provided in the answer to this[^] thread on MSDN.Social.
20 Mar 2011 by chkus333
Hi,now I don't get an error, but nothing is in the dataset. Here's my code:string strWorkbookName = Globals.ThisWorkbook.FullName; string strConn = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + strWorkbookName + ";Extended Properties='Excel 12.0;HDR=Yes'"; ...
14 Apr 2011 by Jeffrey Enzo
If you're using Visual Studio, use Breakpoint in your code to find out what it's doing on each phase of your code.Check MSDN: http://msdn.microsoft.com/en-us/library/ktf38f66(v=VS.90).aspx[^]
14 Apr 2011 by Manfred Rudolf Bihy
The solution is found on this site here: http://msdn.microsoft.com/en-us/library/microsoft.office.core.commandbar_members(v=office.11).aspx[^].Controls is not a method but rather a property of CommandBar.Hope that clears it up for you!Cheers,-MRB
14 Apr 2011 by Dragan01
Solved:Dim cmdBar As Microsoft.Office.Core.CommandBarPopupDim cmdBarButton As Microsoft.Office.Core.CommandBarButtoncmdBar = TryCast(Globals.ThisAddIn.Application.CommandBars("Cell").Controls.Add(Office.MsoControlType.msoControlPopup, , , , True),...
5 May 2011 by Oshtri Deka
Do as described in this tip n' trick[^] for each sheet.Vote if this helps you.
5 May 2011 by Christopher James Kleinheinz
Found the solution!Just have to activate the sheet first where you wanna import the data... That's it!//define range for stream usageGlobals.Tabelle1.Activate();Excel.Range rangeStreamUsage = Globals.Tabelle1.Range["A1", missing];this.XmlImportXml(StreamUsageDataSet.GetXml(), out...
17 May 2011 by LetsGoPens
I'm having the same issue in the same type of environment. I have setup many VM's to narrow down this issue... as I had some machines that it would work on, and others it would not.I've narrowed the issue down to Office 2003. Computers that had 2003 on them at any point seem to all give me...
17 May 2011 by Programm3r
Have a look at the following post: KB976477 "The expected version..." errorKind regards,
4 Jun 2011 by prathameshpitale
Hello,I have Designed an Addin for Microsoft Word, Which will disable Save & save as Button.Problem here is if some one Disables the Addin its AllOver! Can any one suggest me how to Disallow user to Disable Addin. Any Idea?Might be only Admin should hae right to Disable it.. or any other...
4 Jun 2011 by Abhinav S
Not sure, but have a look at the Verifyaddinpermissions[^] to see if it helps.
5 Jun 2011 by Sergey Alexandrovich Kryukov
It's a very bad idea to disallow disabling a plug-in. If ever used such obtrusive thing I would simply removed it and never trusted the company/author again. Don't be obtrusive.—SA
13 Jun 2011 by prathameshpitale
Hello,I need to disable the send as PDF and send as XPS option in word 2007 and 2010.Can you help me ?i have disabled SAve option but now using below code.private void ThisAddIn_Startup(object sender, EventArgs e) { this.Application.DocumentBeforeSave += new...
21 Jun 2011 by Arun Kuttiyil Raj
Language : c sharpVisual Studio :2008Outlook : 2007ExplanationThis is my xml file I have created a menu named "New Menu" in outlook's inspector window.my aim is when i click on the New Menu , a menu should appear(it...
23 Jun 2011 by Arun Kuttiyil Raj
Hi All,I have created a menu item by using the following codeMenuItem item = new MenuItem("Open");My task is to add the above menuitem to outlook commandbar commadbar is created asprivate Office.CommandBar default_MenuBar;///Declarationdefault_MenuBar =...
23 Jun 2011 by Prerak Patel
Try this, though it says office 2003.http://msdn.microsoft.com/en-us/library/0batekf4(v=VS.90).aspx[^]
30 Jun 2011 by bartosi
I'm creating an VSTO addin family (first word, then excel and powerpoint) , which prints the current document started from an custom print button in the backstage view with some special (footer) preparation before sendig it to the printer. The problem is that, I should use actual PrinTab...
12 Oct 2011 by Hamid Noahdi
I found a sloution after testing many things. 1) Build the vsto project. 2) Copy the files such as *.docx and *.vsto files and the dll to the start up path. 3) Download axFramerControl OCX and add it to the windows form. 4) Open the .docx file which you copied to the startup path....
12 Oct 2011 by Hamid Noahdi
How should i make an instance of PlainTextContentControl? like:PlainTextContentControl p = new PlainTextContentControl( ...); I do not want to use:plainTextControl p= Globals.ThisDocument.Controls.AddPlainTextContentControl("ControlName"); I need to make a new instance....
23 Nov 2011 by shilpapc
Hi, Is there any ways that we can avoid generating the manifest files for vsto project? am trying to obfuscate the source code of outlook ribbon project which is developed by using vsto. after the obfuscation if i try to install the vsto it gives the error that data in the manifest doesnt...
4 Dec 2011 by toby31
I am currently working on an InfoPath ribbon using VSTO. I am using components that change at run time taking into consideration the content of the document. The problem is that when i open multiple documents the information in the ribbon is the same in every documen.From what i read the...
5 Dec 2011 by mohammad Taraby
Hi, I have developed a word 2007 add-in using Visual Studio 2010, everything is working fine in the Development environment , but when I install the add-in on a end-user computer the following exception appears : The following properties have been set:Property: [AdminUser] = true...
7 Dec 2011 by mohammad Taraby
you shold install the below 2 installer 1-Microsoft Visual Studio 2010 Tools for Office Runtime (x86) Setup2-Microsoft .NET Framework 4 Setup
7 Dec 2011 by mohammad Taraby
Hi,does “Embed Interop Type” property exist in VS 2008 , and if not What is the alternative ?Thanks,
7 Dec 2011 by Wendelius
Have a look at the following doc: Importing a Type Library as an Assembly[^]
12 Dec 2011 by thatraja
Check this"The expected version of the product was not found on your system" error message when you install Office[^]
22 Dec 2011 by mohammad Taraby
Hi,I have implemented a VSTO word Add-in, when the user install the setup file , my add-in control does not appear until adding it from “Com Add-in” Dialog in the word option Is there any way to add the control automatically to the Add-in tab without going to Com Add-in?Thanks,
17 Jan 2012 by Gaurang Naik
Hi there,I am develping a huge VSTO (Visual Studio Tools for Office) doocument level excel workbook using VS 2010 in C sharp. I am able to generate the excel with necessary data. But basically now i want to integrate it with my windows application, also there is a situation where i need to ...
24 Jan 2012 by Bardestoner
Hi, I have created an animated loading-icon here (http://www.ajaxload.info/) and I am trying to use this gif for the image-property of a VSTO-RibbonMenu control. In Visual Studio the image of the control is animated during designtime as it should, but on runtime the image is not animated...
7 Feb 2012 by Member 8102934
Hi guys.I am creating a VSTO for outlook 2007.What I am doing is I added a bunch of images to my resources folder of my application, I then loop through the folder and then get the images in the folder and for each image in that folder create a button and set that buttons background to...
7 Feb 2012 by bbirajdar
You need to use the LinkedResource class in .NETCheck the complete implementation herehttp://www.dotnetobject.com/Thread-How-to-embed-a-image-in-a-email[^]Do not forget to vote my solution.
26 Mar 2012 by student007
I am running into the same problem. I've found one solutionapplicationObject.GetNamespace("MAPI").AddressLists["Global Address List"].AddressEntries["USER NAME"].Details(0);applicationObject is the pointer to your Outlook Application, and "USER NAME" is pretty much the sender's user...
17 Apr 2012 by Tejas Vaishnav
I want to access a signature from outlook which user create and save to his/her outlook profile.and how to use that signature text to import in text box parametrically.
23 May 2012 by TRK3
Sounds like you want to use a static class or static member function:http://msdn.microsoft.com/en-us/library/79b3xss3(v=vs.80).aspx[^]
29 May 2012 by Tejas Vaishnav
Finally i found the solution for this.what i do for this is to access the mail item and use mail items send() method so it will fire Application_Item Send event automatically.like this.private void btnProtect_Click(object sender, RibbonControlEventArgs e){ //FormFactory is...
6 Jun 2012 by Member 8926276
Using VSTO for C# is there a way to retrieve or preview the slides or templates that are created in the .potx files?It should be such that when a user clicks on a particular template the preview of the slide should be visible to the user in the same way as when user clicks on the layout menu...
2 Aug 2012 by patelv61
everytime opening TFS Username and password window show up and I did not create any password what should I do to get with program
9 Oct 2012 by Mohammad A Rahman
might help, .NET and VBA interoperability[^]
14 Oct 2012 by Maciej Los
The exact function to convert .net dictionary into Excel dictionary (custom list) doesn't exists, but you can use Dictionary.CopyTo[^] to copy dictionary into an array and then use AddCustomList[^] function to add custom list.Remarks:If the list you're trying to add already exists, this...
18 Oct 2012 by yrishi
Dear All I am using VS2010, C#. I want to detect specified string (like "%") position which presents number of times in word doc. After getting position, I want to navigate cursor on button click for respective position throughout the word doc Please share your thoughts...
21 Feb 2013 by suryakiran.pothukuchi
Below Code referring to save the 2010 word addin document in Pdf formatGlobals.ThisDocument.Application.ActiveDocument.ExportAsFixedFormat( Path.Combine(desktopfolder, Filename), Word.WdExportFormat.wdExportFormatPDF, OpenAfterExport:...
29 May 2013 by Sergey Alexandrovich Kryukov
How about using Open XML SDK? Please see:http://www.microsoft.com/en-us/download/details.aspx?id=30425[^].This way, you can support new XML-based Office formats (such as .DOCX, .XLSX), ECMA-376...
23 Jun 2013 by moon_lu
Sorry to bother you ,I want to use VC++ to create Excel Addin, in the XML document ,button control need image = bitmap.bmp ,the button need to load the bitmap.bmp, I see the report in:http://msdn.microsoft.com/en-us/library /aa338202.aspx#OfficeCustomizingRibbonUIforDevelopers_Callbackssample...
14 Jul 2013 by TapasU
Hi All,I am working on a VSTO project and developing a Excel Plug-in. However, somehow I am not able to debug my source code. My code is not breaking on the Breakpoints.Things I tried1. Clean and Rebuild.2. Restarting Visual Studio (Several times).3. Disabled "Enable Just My...
22 Jul 2013 by baris usanmaz
hello,i am writing a microsoft visio addin with c#. this addin has a button and when this button is pressed an executive shape copied on the page.at the same time, i want a picture in this shape but i can not add the picture from c#.i know there is a selection in visio "Insert...
5 Aug 2013 by Code-Hunt
http://msdn.microsoft.com/en-u...
5 Aug 2013 by Maarten Kools
I'm sure you've tried to Google it. But here you go: Creating a WiX setup for Office add-in: Outlook, Excel, Word, PowerPoint[^]WiX installer for VSTO projects[^]Creating WiX setup project for Office add-ins on Visual Studio 2012 using Add-in Express[^]
6 Aug 2013 by Vikas Baisla
Hi all,We have built a VTSO office add-in using Visual Studio 2008 (C#,vsto 2.0 runtime) targeting office 2007 as the minimum version. Works fine on 2007 and 2010 version of outlook, word, excel and power point. It is also working on 2013 version of word, excel and power point but do not...
21 Aug 2013 by Yesudasan Moses
Hi friends,How can I make an Outlook addin to highlight numbers in an incoming mail (ie., Inbox mails)and make it like a link as skype do, when people click on it, My windows application will show up and starts calling to that number... How can I do it friends ???
21 Aug 2013 by Yesudasan Moses
Hi friends,I am developing a spell check application for Outlook Incoming mails.When a user opens an inbox mail in Outlook, The wrong spelled words should be underlined with red... Is there any way to do so in VSTO ???Thanks
2 Sep 2013 by Yesudasan Moses
Hi,In my outlook 2007 AddIn, Menu is appearing.... But, Context Menu Click event is not firing... Please point out what's the issue with my code .... private void ThisAddIn_Startup(object sender, System.EventArgs e) { var inspectors = this.Application.Inspectors; ...
1 Oct 2013 by Yesudasan Moses
Hi friends,I am trying to install my outlook addin from internet.But it shows error that "Publisher is not verified"How can I get rid of this? How can I obtain a certification for my addin ?Can anyone please tell me the signing process of Outlook Addin ?Does it cost money?Thanks
2 Oct 2013 by Yesudasan Moses
Hi friends,I am trying to write an Outlook Addin to find and highlight (Colorchange+ Underline) the phone numbers in Outlook Emails. Moreover, If the user hover these highlighted phone numbers a small panel should appear there, and shows a call button. Is that possible with Outlook Addin...
6 Oct 2013 by Yesudasan Moses
Hi friends,I am trying to add a context menu for my contact Item in an Outlook Addin Project..But the Menu appears at the bottom...How can I set it as first Item in Menu... ? var contextButton = commandBar.Controls.Add(Office.MsoControlType.msoControlButton, missing, missing, 0,...
8 Dec 2013 by Yesudass Moses
I am trying to add a context menu for my contact Item in an Outlook Addin Project.. But the Menu appears at the bottom... How can I set it as first Item in Menu... ?var contextButton = commandBar.Controls.Add(Office.MsoControlType.msoControlButton, missing, missing, 0, true) as...